Class Selector.Matcher

  • Enclosing class:
    Selector

    public class Selector.Matcher
    extends XPathMatcher
    Selector matcher.
    Author:
    Andy Clark, IBM
    • Field Detail

      • fFieldActivator

        protected final FieldActivator fFieldActivator
        Field activator.
      • fInitialDepth

        protected final int fInitialDepth
        Initial depth in the document at which this matcher was created.
      • fElementDepth

        protected int fElementDepth
        Element depth.
      • fMatchedDepth

        protected int fMatchedDepth
        Depth at match.
    • Method Detail

      • startElement

        public void startElement​(QName element,
                                 XMLAttributes attributes)
        The start of an element. If the document specifies the start element by using an empty tag, then the startElement method will immediately be followed by the endElement method, with no intervening methods.
        Overrides:
        startElement in class XPathMatcher
        Parameters:
        element - The name of the element.
        attributes - The element attributes.
      • endElement

        public void endElement​(QName element,
                               XSTypeDefinition type,
                               boolean nillable,
                               Object actualValue,
                               short valueType,
                               ShortList itemValueType)
        Overrides:
        endElement in class XPathMatcher
        Parameters:
        element - name of the element.
        type - content type of this element. IOW, the XML schema type of the value. Note that this may not be the type declared in the element declaration, but it is "the actual type". For example, if the XML is <foo xsi:type="xs:string">aaa</foo>, this parameter will be "xs:string".
        nillable - - nillable true if the element declaration is nillable.
        actualValue - - actual value the typed value of the content of this element.
      • getIdentityConstraint

        public IdentityConstraint getIdentityConstraint()
        Returns the identity constraint.
      • getInitialDepth

        public int getInitialDepth()
        get the initial depth at which this selector matched.