|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 IdentityConstraint |
fIDConstraint
REVISIT: do we need this? -NG protected NamespaceContext fNamespacesScope; |
protected SymbolTable |
fSymbolTable
Symbol table. |
Constructor Summary | |
XPathMatcher(XPath xpath)
Constructs an XPath matcher that implements a document fragment handler. |
|
XPathMatcher(XPath xpath,
boolean shouldBufferContent,
IdentityConstraint idConstraint)
Constructs an XPath matcher that implements a document fragment handler. |
Method Summary | |
void |
characters(org.apache.xerces.xni.XMLString text)
Character content. |
void |
endDocumentFragment()
The end of the document fragment. |
void |
endElement(org.apache.xerces.xni.QName element,
XSElementDecl eDecl)
The end of an element. |
IdentityConstraint |
getIDConstraint()
|
boolean |
getIsSelector()
|
java.lang.String |
getMatchedString()
Returns the matched string. |
boolean |
isMatched()
Returns true if XPath has been matched. |
protected void |
matched(java.lang.String content,
XSSimpleType val,
boolean isNil)
This method is called when the XPath handler matches the XPath expression. |
void |
startDocumentFragment(SymbolTable symbolTable)
The start of the document fragment. |
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
XSElementDecl elementDecl)
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 SymbolTable fSymbolTable
protected IdentityConstraint fIDConstraint
Constructor Detail |
public XPathMatcher(XPath xpath)
xpath
- The xpath.public XPathMatcher(XPath xpath, boolean shouldBufferContent, IdentityConstraint idConstraint)
xpath
- The xpath.shouldBufferContent
- True if the matcher should buffer the
matched content.idConstraint:
- the identity constraint we're matching for;
null unless it's a Selector.Method Detail |
public boolean isMatched()
public boolean getIsSelector()
public IdentityConstraint getIDConstraint()
public java.lang.String getMatchedString()
protected void matched(java.lang.String content, XSSimpleType val, boolean isNil) throws org.apache.xerces.xni.XNIException
public void startDocumentFragment(SymbolTable symbolTable) throws org.apache.xerces.xni.XNIException
context
- The namespace scope in effect at the
start of this document fragment.org.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, XSElementDecl elementDecl) throws org.apache.xerces.xni.XNIException
element
- The name of the element.attributes
- The element attributes.elementDecl:
- The element declaration for the elementSAXException
- Thrown by handler to signal an error.public void characters(org.apache.xerces.xni.XMLString text) throws org.apache.xerces.xni.XNIException
public void endElement(org.apache.xerces.xni.QName element, XSElementDecl eDecl)
element
- The name of the element.eDecl:
- the element declarationSAXException
- Thrown by handler to signal an error.public void endDocumentFragment() throws org.apache.xerces.xni.XNIException
SAXException
- Thrown by handler to signal an error.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |