|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.pattern.Pattern | +--com.icl.saxon.pattern.DocumentPattern
A DocumentPattern is a pattern that matches only the root node of a document
Fields inherited from class com.icl.saxon.pattern.Pattern |
staticContext |
Constructor Summary | |
DocumentPattern()
|
Method Summary | |
Name |
getName()
If this pattern will match only nodes of a single name, return the relevant node name. |
int |
getType()
Determine the type of nodes to which this pattern applies. |
boolean |
isRelative()
Determine if the pattern uses positional filters |
boolean |
matches(NodeInfo node,
Context c)
Determine whether a node matches the pattern |
java.lang.String |
toString()
Return the pattern as a string |
Methods inherited from class com.icl.saxon.pattern.Pattern |
getDefaultPriority, getNameTest, getStaticContext, make, make, setStaticContext, simplify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DocumentPattern()
Method Detail |
public boolean matches(NodeInfo node, Context c) throws org.xml.sax.SAXException
matches
in class Pattern
com.icl.saxon.pattern.Pattern
node
- The NodeInfo representing the Element or other node to be tested against the Patterncontext
- The context in which the match is to take place. Only relevant if the pattern
uses variables.public int getType()
getType
in class Pattern
public Name getName()
getName
in class Pattern
com.icl.saxon.pattern.Pattern
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isRelative()
isRelative
in class Pattern
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |