|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface Selection
A selection represents the restricted form of path expression permitted in XML Schema (both the selector and field variants)
| Method Summary | |
|---|---|
boolean |
canMatchAttributes()
Determine whether the selection can match attribute nodes |
boolean |
canMatchElementContent()
Determine whether the selection can match element content |
ItemType |
getItemType(TypeHierarchy th)
Return the type of the nodes selected by this selection |
boolean |
matchesAttribute(int nameCode)
Determine whether a given attribute matches the Selection |
boolean |
matchesElement(int[] stack,
int length,
int contextPosition)
Determine whether the selector matches a given element. |
String |
typeCheck(StaticContext env,
ItemType contextItemType)
Check that the selection makes sense in the context of a given ItemType. |
| Method Detail |
|---|
boolean matchesElement(int[] stack,
int length,
int contextPosition)
stack - the array of name fingerprintslength - the effective length of the array; any items beyond this
position are ignoredcontextPosition - the position in this array of the context element
for the selection.
boolean matchesAttribute(int nameCode)
throws ValidationException
ValidationException - if there is more than one
attribute that matchesboolean canMatchAttributes()
boolean canMatchElementContent()
String typeCheck(StaticContext env,
ItemType contextItemType)
ItemType getItemType(TypeHierarchy th)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||