|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.impl.xs.identity.XPathMatcher
XPath matcher.
Field Summary | |
---|---|
protected static boolean |
DEBUG_ALL
Compile to true to debug everything. |
protected static boolean |
DEBUG_ANY
Don't touch this value unless you add more debug constants. |
protected static boolean |
DEBUG_MATCH
Compile to true to debug match. |
protected static boolean |
DEBUG_METHODS
Compile to true to debug method callbacks. |
protected static boolean |
DEBUG_METHODS2
Compile to true to debug important method callbacks. |
protected static boolean |
DEBUG_METHODS3
Compile to true to debug the really important methods. |
protected static boolean |
DEBUG_STACK
Compile to true to debug step index stack. |
protected java.lang.Object |
fMatchedString
The matching string. |
protected static int |
MATCHED
|
protected static int |
MATCHED_ATTRIBUTE
|
protected static int |
MATCHED_DESCENDANT
|
protected static int |
MATCHED_DESCENDANT_PREVIOUS
|
Constructor Summary | |
---|---|
XPathMatcher(XPath xpath)
Constructs an XPath matcher that implements a document fragment handler. |
Method Summary | |
---|---|
void |
endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xs.XSTypeDefinition type,
boolean nillable,
java.lang.Object value)
|
protected void |
handleContent(org.apache.xerces.xs.XSTypeDefinition type,
boolean nillable,
java.lang.Object value)
|
boolean |
isMatched()
Returns value of first member of fMatched that is nonzero. |
protected void |
matched(java.lang.Object actualValue,
boolean isNil)
This method is called when the XPath handler matches the XPath expression. |
void |
startDocumentFragment()
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. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final boolean DEBUG_ALL
protected static final boolean DEBUG_METHODS
protected static final boolean DEBUG_METHODS2
protected static final boolean DEBUG_METHODS3
protected static final boolean DEBUG_MATCH
protected static final boolean DEBUG_STACK
protected static final boolean DEBUG_ANY
protected static final int MATCHED
protected static final int MATCHED_ATTRIBUTE
protected static final int MATCHED_DESCENDANT
protected static final int MATCHED_DESCENDANT_PREVIOUS
protected java.lang.Object fMatchedString
Constructor Detail |
public XPathMatcher(XPath xpath)
xpath
- The xpath.Method Detail |
public boolean isMatched()
protected void handleContent(org.apache.xerces.xs.XSTypeDefinition type, boolean nillable, java.lang.Object value)
protected void matched(java.lang.Object actualValue, boolean isNil)
public void startDocumentFragment()
public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes)
element
- The name of the element.attributes
- The element attributes.
SAXException
- Thrown by handler to signal an error.public void endElement(org.apache.xerces.xni.QName element, org.apache.xerces.xs.XSTypeDefinition type, boolean nillable, java.lang.Object value)
element
- - nametype
- - typevalue
- - actual valuepublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |