Class Selector.Matcher
java.lang.Object
org.apache.xerces.impl.xs.identity.XPathMatcher
org.apache.xerces.impl.xs.identity.Selector.Matcher
- Enclosing class:
Selector
Selector matcher.
- Author:
- Andy Clark, IBM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Element depth.protected final FieldActivator
Field activator.protected final int
Initial depth in the document at which this matcher was created.protected int
Depth at match.Fields inherited from class org.apache.xerces.impl.xs.identity.XPathMatcher
DEBUG_ALL, DEBUG_ANY, DEBUG_MATCH, DEBUG_METHODS, DEBUG_METHODS2, DEBUG_METHODS3, DEBUG_STACK, fMatchedString, MATCHED, MATCHED_ATTRIBUTE, MATCHED_DESCENDANT, MATCHED_DESCENDANT_PREVIOUS
-
Constructor Summary
ConstructorsConstructorDescriptionMatcher
(Selector.XPath xpath, FieldActivator activator, int initialDepth) Constructs a selector matcher. -
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(org.apache.xerces.xni.QName element, org.apache.xerces.xs.XSTypeDefinition type, boolean nillable, Object actualValue, short valueType, org.apache.xerces.xs.ShortList itemValueType) Returns the identity constraint.int
get the initial depth at which this selector matched.void
The start of the document fragment.void
startElement
(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes) The start of an element.Methods inherited from class org.apache.xerces.impl.xs.identity.XPathMatcher
handleContent, isMatched, matched, toString
-
Field Details
-
fFieldActivator
Field activator. -
fInitialDepth
protected final int fInitialDepthInitial depth in the document at which this matcher was created. -
fElementDepth
protected int fElementDepthElement depth. -
fMatchedDepth
protected int fMatchedDepthDepth at match.
-
-
Constructor Details
-
Matcher
Constructs a selector matcher.
-
-
Method Details
-
startDocumentFragment
public void startDocumentFragment()Description copied from class:XPathMatcher
The start of the document fragment.- Overrides:
startDocumentFragment
in classXPathMatcher
-
startElement
public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.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 classXPathMatcher
- Parameters:
element
- The name of the element.attributes
- The element attributes.
-
endElement
public void endElement(org.apache.xerces.xni.QName element, org.apache.xerces.xs.XSTypeDefinition type, boolean nillable, Object actualValue, short valueType, org.apache.xerces.xs.ShortList itemValueType) - Overrides:
endElement
in classXPathMatcher
- 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
Returns the identity constraint. -
getInitialDepth
public int getInitialDepth()get the initial depth at which this selector matched.
-