|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Base interface for element comparators: objects that can recognize an XML element
based on its path name and/or by the attributes or data that it contains. Used
by ProgrammableSAXFilter.
| Method Summary | |
boolean |
matchesData(char[] data,
int start,
int length)
Checks if the character data matches the criteria of this comparator. |
boolean |
matchesPath(java.lang.String path)
Checks if the XML tag at the specified path matches the criteria of this comparator. |
boolean |
matchesTag(java.lang.String path,
org.xml.sax.Attributes atts)
Checks if the XML tag at the specified path with given attribute list matches the criteria of this comparator. |
boolean |
needsData()
Checks if this comparator needs to see the data section to make a decision. |
| Method Detail |
public boolean matchesTag(java.lang.String path,
org.xml.sax.Attributes atts)
path - XML path to the element.atts - Attribute list of the element.public boolean matchesPath(java.lang.String path)
path - XML path to the element.public boolean needsData()
public boolean matchesData(char[] data,
int start,
int length)
data - source character array.start - start position of source characters.length - number of source characters.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||