|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.saxonica.schema.PathSelection
A PathSelection is a Selection that applies a NodeTest to each element between the context element and the node being tested, and returns true if they all match. This class is used internally in the validation of instance documents against uniqueness and identity constraints; it is not intended for use by user applications.
| Constructor Summary | |
PathSelection(NodeTest[] tests,
boolean anchored,
NodeTest attributeTest)
|
|
| Method Summary | |
boolean |
canMatchAttributes()
Determine whether the selection can match attribute nodes |
boolean |
canMatchElementContent()
Determin whether the selection can match element content |
NodeTest |
getAttributeTest()
|
boolean |
matchesAttribute(int fingerprint)
Determine whether a given attribute matches the Selection |
boolean |
matchesElement(int[] stack,
int contextPosition,
int length)
Determine whether the selector matches a given element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PathSelection(NodeTest[] tests,
boolean anchored,
NodeTest attributeTest)
| Method Detail |
public boolean matchesElement(int[] stack,
int contextPosition,
int length)
matchesElement in interface Selectionstack - the array of name fingerprintscontextPosition - the position in this array of the context element
for the selection.length - the effective length of the array; any items beyond this
position are ignored
public NodeTest getAttributeTest()
public boolean matchesAttribute(int fingerprint)
matchesAttribute in interface Selectionpublic boolean canMatchAttributes()
canMatchAttributes in interface Selectionpublic boolean canMatchElementContent()
canMatchElementContent in interface Selection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||