| java.lang.Object org.apache.xerces.impl.xs.identity.XPathMatcher
XPathMatcher | public class XPathMatcher (Code) | | XPath matcher.
author: Andy Clark, IBM version: $Id: XPathMatcher.java 572110 2007-09-02 19:04:44Z mrglavas $ |
Constructor Summary | |
public | XPathMatcher(XPath xpath) Constructs an XPath matcher that implements a document fragment
handler. |
Method Summary | |
public void | endElement(QName element, XSTypeDefinition type, boolean nillable, Object value, short valueType, ShortList itemValueType) Parameters: element - name of the element. Parameters: type - content type of this element. | protected void | handleContent(XSTypeDefinition type, boolean nillable, Object value, short valueType, ShortList itemValueType) | public boolean | isMatched() Returns value of first member of fMatched that
is nonzero. | protected void | matched(Object actualValue, short valueType, ShortList itemValueType, boolean isNil) This method is called when the XPath handler matches the
XPath expression. | public void | startDocumentFragment() The start of the document fragment. | public void | startElement(QName element, XMLAttributes attributes) 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.
|
MATCHED | final protected static int MATCHED(Code) | | |
MATCHED_ATTRIBUTE | final protected static int MATCHED_ATTRIBUTE(Code) | | |
MATCHED_DESCENDANT | final protected static int MATCHED_DESCENDANT(Code) | | |
MATCHED_DESCENDANT_PREVIOUS | final protected static int MATCHED_DESCENDANT_PREVIOUS(Code) | | |
fMatchedString | protected Object fMatchedString(Code) | | The matching string.
|
XPathMatcher | public XPathMatcher(XPath xpath)(Code) | | Constructs an XPath matcher that implements a document fragment
handler.
Parameters: xpath - The xpath. |
endElement | public void endElement(QName element, XSTypeDefinition type, boolean nillable, Object value, short valueType, ShortList itemValueType)(Code) | | Parameters: element - name of the element. Parameters: type - content type of this element. IOW, the XML schema typeof the value. Note that this may not be the type declaredin the element declaration, but it is "the actual type". For example,if the XML is <foo xsi:type="xs:string">aaa</foo>, thisparameter will be "xs:string". Parameters: nillable - - nillabletrue if the element declaration is nillable. Parameters: value - - actual valuethe typed value of the content of this element. |
isMatched | public boolean isMatched()(Code) | | Returns value of first member of fMatched that
is nonzero.
|
matched | protected void matched(Object actualValue, short valueType, ShortList itemValueType, boolean isNil)(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()(Code) | | The start of the document fragment.
|
startElement | public void startElement(QName element, XMLAttributes attributes)(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. throws: SAXException - Thrown by handler to signal an error. |
toString | public String toString()(Code) | | Returns a string representation of this object.
|
|
|