| java.lang.Object org.apache.xerces.validators.schema.identity.XPathMatcher
XPathMatcher | public class XPathMatcher (Code) | | XPath matcher.
author: Andy Clark, IBM version: $Id: XPathMatcher.java,v 1.14 2001/05/15 22:18:12 neilg Exp $ |
Constructor Summary | |
public | XPathMatcher(XPath xpath) Constructs an XPath matcher that implements a document fragment
handler. | public | XPathMatcher(XPath xpath, boolean shouldBufferContent, IdentityConstraint idConstraint) Constructs an XPath matcher that implements a document fragment
handler. |
Method Summary | |
public void | characters(char[] ch, int offset, int length) Character content. | public void | endDocumentFragment() The end of the document fragment. | public void | endElement(QName element, int eIndex, SchemaGrammar grammar) The end of an element.
Parameters: element - The name of the element. | public IdentityConstraint | getIDConstraint() | public boolean | getIsSelector() | public String | getMatchedString() Returns the matched string. | public boolean | isMatched() Returns true if XPath has been matched. | protected void | matched(String content, DatatypeValidator val, boolean isNil) This method is called when the XPath handler matches the
XPath expression. | public void | startDocumentFragment(StringPool stringPool) The start of the document fragment.
Parameters: namespaceScope - The namespace scope in effect at thestart of this document fragment. | public void | startElement(QName element, XMLAttrList attributes, int handle, int eIndex, SchemaGrammar grammar) The start of an element. | public String | toString() Returns a string representation of this object. |
DEBUG_ALL | final protected static boolean DEBUG_ALL(Code) | | Compile to true to debug everything.
|
DEBUG_ANY | final protected static boolean DEBUG_ANY(Code) | | Don't touch this value unless you add more debug constants.
|
DEBUG_MATCH | final protected static boolean DEBUG_MATCH(Code) | | Compile to true to debug match.
|
DEBUG_METHODS | final protected static boolean DEBUG_METHODS(Code) | | Compile to true to debug method callbacks.
|
DEBUG_METHODS2 | final protected static boolean DEBUG_METHODS2(Code) | | Compile to true to debug important method callbacks.
|
DEBUG_METHODS3 | final protected static boolean DEBUG_METHODS3(Code) | | Compile to true to debug the really important methods.
|
DEBUG_STACK | final protected static boolean DEBUG_STACK(Code) | | Compile to true to debug step index stack.
|
XPathMatcher | public XPathMatcher(XPath xpath)(Code) | | Constructs an XPath matcher that implements a document fragment
handler.
Parameters: xpath - The xpath. |
XPathMatcher | public XPathMatcher(XPath xpath, boolean shouldBufferContent, IdentityConstraint idConstraint)(Code) | | Constructs an XPath matcher that implements a document fragment
handler.
Parameters: xpath - The xpath. Parameters: shouldBufferContent - True if the matcher should buffer thematched content. idConstraint: the identity constraint we're matching for; null unless it's a Selector. |
characters | public void characters(char[] ch, int offset, int length) throws Exception(Code) | | Character content.
|
endDocumentFragment | public void endDocumentFragment() throws Exception(Code) | | The end of the document fragment.
throws: SAXException - Thrown by handler to signal an error. |
endElement | public void endElement(QName element, int eIndex, SchemaGrammar grammar) throws Exception(Code) | | The end of an element.
Parameters: element - The name of the element. eIndex: the elementDeclIndex of the current element;needed so that we can look up its datatypeValidator. throws: SAXException - Thrown by handler to signal an error. |
getIsSelector | public boolean getIsSelector()(Code) | | |
getMatchedString | public String getMatchedString()(Code) | | Returns the matched string.
|
isMatched | public boolean isMatched()(Code) | | Returns true if XPath has been matched.
|
matched | protected void matched(String content, DatatypeValidator val, boolean isNil) throws Exception(Code) | | This method is called when the XPath handler matches the
XPath expression. Subclasses can override this method to
provide default handling upon a match.
|
startDocumentFragment | public void startDocumentFragment(StringPool stringPool) throws Exception(Code) | | The start of the document fragment.
Parameters: namespaceScope - The namespace scope in effect at thestart of this document fragment. grammar: the schema grammar we're validating against. throws: SAXException - Thrown by handler to signal an error. |
startElement | public void startElement(QName element, XMLAttrList attributes, int handle, int eIndex, SchemaGrammar grammar) throws Exception(Code) | | 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.
Parameters: element - The name of the element. Parameters: attributes - The element attributes. eIndex: the element index of the current element grammar: the currently-active Schema Grammar throws: SAXException - Thrown by handler to signal an error. |
toString | public String toString()(Code) | | Returns a string representation of this object.
|
|
|