|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.impl.xs.identity.XPathMatcher
public class XPathMatcher
XPath matcher.
Constructor Summary | |
---|---|
XPathMatcher(XPath xpath)
Constructs an XPath matcher that implements a document fragment handler. |
Method Summary | |
---|---|
void |
endElement(QName element,
XSTypeDefinition type,
boolean nillable,
java.lang.Object value,
short valueType,
ShortList itemValueType)
|
boolean |
isMatched()
Returns value of first member of fMatched that is nonzero. |
void |
startDocumentFragment()
The start of the document fragment. |
void |
startElement(QName element,
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XPathMatcher(XPath xpath)
xpath
- The xpath.Method Detail |
---|
public boolean isMatched()
public void startDocumentFragment()
public void startElement(QName element, XMLAttributes attributes)
element
- The name of the element.attributes
- The element attributes.
SAXException
- Thrown by handler to signal an error.public void endElement(QName element, XSTypeDefinition type, boolean nillable, java.lang.Object value, short valueType, ShortList itemValueType)
element
- name of the element.type
- 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".nillable
- - nillable
true if the element declaration is nillable.value
- - actual value
the typed value of the content of this element.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |