public class FieldMatcher extends PathMatcher
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.StringBuffer |
elementText
this field is set to non-null if it's found that an element
is matched to this XPath.
|
protected Field |
field |
protected FieldsMatcher |
parent
parent FieldsMatcher object.
|
protected java.lang.Object |
value
the matched value.
|
children| Constructor and Description |
|---|
FieldMatcher(FieldsMatcher parent,
Field field,
java.lang.String namespaceURI,
java.lang.String localName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
characters(char[] buf,
int start,
int len) |
private void |
doubleMatchError()
this field matches more than once.
|
protected void |
endElement(org.relaxng.datatype.Datatype type) |
protected void |
onAttributeMatched(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value,
org.relaxng.datatype.Datatype type)
this method is called when the attribute matches the XPath.
|
protected void |
onElementMatched(java.lang.String namespaceURI,
java.lang.String localName)
this method is called when the element matches the XPath.
|
private void |
setValue(java.lang.String lexical,
org.relaxng.datatype.Datatype type)
sets the value field.
|
protected void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attributes) |
onAttribute, start, startElementgetDepth, onRemovedprotected Field field
protected java.lang.Object value
protected final FieldsMatcher parent
protected java.lang.StringBuffer elementText
FieldMatcher(FieldsMatcher parent, Field field, java.lang.String namespaceURI, java.lang.String localName) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void onElementMatched(java.lang.String namespaceURI,
java.lang.String localName)
throws org.xml.sax.SAXException
onElementMatched in class PathMatcherorg.xml.sax.SAXExceptionprotected void onAttributeMatched(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value,
org.relaxng.datatype.Datatype type)
throws org.xml.sax.SAXException
onAttributeMatched in class PathMatcherorg.xml.sax.SAXExceptionprotected void startElement(java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void endElement(org.relaxng.datatype.Datatype type)
throws org.xml.sax.SAXException
endElement in class MatcherBundleorg.xml.sax.SAXExceptionprotected void characters(char[] buf,
int start,
int len)
throws org.xml.sax.SAXException
characters in class MatcherBundleorg.xml.sax.SAXExceptionprivate void setValue(java.lang.String lexical,
org.relaxng.datatype.Datatype type)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprivate void doubleMatchError()
throws org.xml.sax.SAXException
org.xml.sax.SAXException