| Modifier and Type | Field and Description |
|---|---|
| protected static final boolean | DEBUG_ALL
Compile to true to debug everything. |
| protected static final boolean | DEBUG_ANY
Don't touch this value unless you add more debug constants. |
| protected static final boolean | DEBUG_MATCH
Compile to true to debug match. |
| protected static final boolean | DEBUG_METHODS
Compile to true to debug method callbacks. |
| protected static final boolean | DEBUG_METHODS2
Compile to true to debug important method callbacks. |
| protected static final boolean | DEBUG_METHODS3
Compile to true to debug the really important methods. |
| protected static final boolean | DEBUG_STACK
Compile to true to debug step index stack. |
| private final int[] | fCurrentStep
Current step. |
| private final XPath. | fLocationPaths
XPath location path. |
| private final int[] | fMatched
True if XPath has been matched. |
| protected Object | fMatchedString
The matching string. |
| private final int[] | fNoMatchDepth
No match depth. |
| pack-priv final QName | |
| private final IntStack[] | fStepIndexes
Integer stack of step indexes. |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public | XPathMatcher(XPath
The xpath. xpath)Constructs an XPath matcher that implements a document fragment handler. |
| Modifier and Type | Method and Description |
|---|---|
| public void | endElement(QName
name of the element. element, XSTypeDefinition 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". type, boolean - nillable
true if the element declaration is nillable. nillable, Object - actual value
the typed value of the content of this element. value, short valueType, ShortList itemValueType)
|
| protected void | handleContent(XSTypeDefinition type, boolean nillable, Object value, short valueType, ShortList itemValueType)
|
| public boolean | |
| protected void | |
| private static boolean | |
| private String | |
| public void | |
| public void | startElement(QName
The name of the element. element, XMLAttributes The element attributes. attributes)The start of an element. |
| public String |
| DEBUG_ALL | back to summary |
|---|---|
| protected static final boolean DEBUG_ALL Compile to true to debug everything. | |
| DEBUG_ANY | back to summary |
|---|---|
| protected static final boolean DEBUG_ANY Don't touch this value unless you add more debug constants. | |
| DEBUG_MATCH | back to summary |
|---|---|
| protected static final boolean DEBUG_MATCH Compile to true to debug match. | |
| DEBUG_METHODS | back to summary |
|---|---|
| protected static final boolean DEBUG_METHODS Compile to true to debug method callbacks. | |
| DEBUG_METHODS2 | back to summary |
|---|---|
| protected static final boolean DEBUG_METHODS2 Compile to true to debug important method callbacks. | |
| DEBUG_METHODS3 | back to summary |
|---|---|
| protected static final boolean DEBUG_METHODS3 Compile to true to debug the really important methods. | |
| DEBUG_STACK | back to summary |
|---|---|
| protected static final boolean DEBUG_STACK Compile to true to debug step index stack. | |
| fCurrentStep | back to summary |
|---|---|
| private final int[] fCurrentStep Current step. | |
| fLocationPaths | back to summary |
|---|---|
| private final XPath. XPath location path. | |
| fMatched | back to summary |
|---|---|
| private final int[] fMatched True if XPath has been matched. | |
| fMatchedString | back to summary |
|---|---|
| protected Object fMatchedString The matching string. | |
| fNoMatchDepth | back to summary |
|---|---|
| private final int[] fNoMatchDepth No match depth. The value of this field will be zero while matching is successful for the given xpath expression. | |
| fQName | back to summary |
|---|---|
| pack-priv final QName fQName | |
| fStepIndexes | back to summary |
|---|---|
| private final IntStack[] fStepIndexes Integer stack of step indexes. | |
| MATCHED | back to summary |
|---|---|
| protected static final int MATCHED | |
| MATCHED_ATTRIBUTE | back to summary |
|---|---|
| protected static final int MATCHED_ATTRIBUTE | |
| MATCHED_DESCENDANT | back to summary |
|---|---|
| protected static final int MATCHED_DESCENDANT | |
| MATCHED_DESCENDANT_PREVIOUS | back to summary |
|---|---|
| protected static final int MATCHED_DESCENDANT_PREVIOUS | |
| XPathMatcher | back to summary |
|---|---|
| public XPathMatcher(XPath xpath) Constructs an XPath matcher that implements a document fragment handler.
| |
| endElement | back to summary |
|---|---|
public void endElement(QName element, XSTypeDefinition type, boolean nillable, Object value, short valueType, ShortList itemValueType)
| |
| handleContent | back to summary |
|---|---|
| protected void handleContent(XSTypeDefinition type, boolean nillable, Object value, short valueType, ShortList itemValueType) | |
| isMatched | back to summary |
|---|---|
| public boolean isMatched() Returns value of first member of fMatched that is nonzero. | |
| matched | back to summary |
|---|---|
| protected void matched(Object actualValue, short valueType, ShortList itemValueType, boolean isNil) This method is called when the XPath handler matches the XPath expression. Subclasses can override this method to provide default handling upon a match. | |
| matches | back to summary |
|---|---|
| private static boolean matches(XPath. Returns true if the given QName matches the node test. | |
| normalize | back to summary |
|---|---|
| private String normalize(String s) Normalizes text. | |
| startDocumentFragment | back to summary |
|---|---|
| public void startDocumentFragment() The start of the document fragment. | |
| startElement | back to summary |
|---|---|
| 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object.
| |