Interface NamedXNodePredicate

All Superinterfaces:
NodePredicate
All Known Implementing Classes:
NamedXNodeType, SchemaAttributeType, SelectorTest

public interface NamedXNodePredicate extends NodePredicate
Interface implemented by a node test that selects nodes of a specific node kind with a specific node name with a known fingerprint. Having the right name and node kind is a necessary condition for satisfying the predicate, and if isFingerprintSufficient() returns true, it is also a sufficient condition.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the corresponding StructuredQName: the name that all nodes must have if they are to satisfy the predicate
    int
    Get the kind of nodes that this node predicate matches
    int
    Get a fingerprint that all nodes (of the specified node kind) must have if they are to satisfy the predicate.
    boolean
    Ask whether having the required fingerprint and node kind is a sufficient condition for a node to satisfy the predicate, or whether other conditions (such as type annotation or nillability) must also be satisfied.

    Methods inherited from interface net.sf.saxon.pattern.nodetest.NodePredicate

    test
  • Method Details

    • getNodeKind

      int getNodeKind()
      Get the kind of nodes that this node predicate matches
      Returns:
      the kind of nodes, for example Type.ELEMENT or net.sf.saxon.type.Type#ATTRIBUTE
    • getRequiredFingerprint

      int getRequiredFingerprint()
      Get a fingerprint that all nodes (of the specified node kind) must have if they are to satisfy the predicate.
      Returns:
      the fingerprint of the name that a node must have if it is to satisfy the predicate
    • getMatchingNodeName

      StructuredQName getMatchingNodeName()
      Get the corresponding StructuredQName: the name that all nodes must have if they are to satisfy the predicate
      Returns:
      the name that a node must have if it is to satisfy the predicate
    • isFingerprintSufficient

      boolean isFingerprintSufficient()
      Ask whether having the required fingerprint and node kind is a sufficient condition for a node to satisfy the predicate, or whether other conditions (such as type annotation or nillability) must also be satisfied.
      Returns:
      true if matching the fingerprint is a sufficient condition.