|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.cosmos.rm.validation.internal.reference.XPointerExpression
public class XPointerExpression
This class is used to represent an XPointer expression that can be
evaluated. Instances of this class should be obtained by compiling a
string representation of the XPointer expression: XPointer.compile(String)
| Field Summary | |
|---|---|
protected static byte |
BARE_NAME_TYPE
Indicates a bare name type |
protected static byte |
CHILD_SEQUENCE_TYPE
Indicates a child sequence type |
protected static byte |
FULL_XPOINTER_TYPE
Indicates a full xpointer type |
| Constructor Summary | |
|---|---|
protected |
XPointerExpression(byte type)
The visibility of the constructor is limited. |
| Method Summary | |
|---|---|
void |
addChildSequence(int child)
Add a child sequence to this expression |
void |
addScheme(IXScheme scheme)
Add a scheme to this expression |
java.lang.Object |
evaluate(java.lang.Object context)
Evaluates this expression using the context that is passed in |
java.lang.String |
getBareName()
|
int[] |
getChildSequence()
Retuns a copy of the child sequence |
java.util.List |
getScheme()
Returns the schemes associated with this XPointer expression |
byte |
getType()
|
void |
setBareName(java.lang.String bareName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final byte BARE_NAME_TYPE
protected static final byte CHILD_SEQUENCE_TYPE
protected static final byte FULL_XPOINTER_TYPE
| Constructor Detail |
|---|
protected XPointerExpression(byte type)
type - The type of this expressionBARE_NAME_TYPE,
CHILD_SEQUENCE_TYPE,
FULL_XPOINTER_TYPE| Method Detail |
|---|
public java.lang.String getBareName()
public void setBareName(java.lang.String bareName)
bareName - the bareName to setpublic byte getType()
public void addScheme(IXScheme scheme)
scheme - The scheme to be addedpublic void addChildSequence(int child)
child -
public java.lang.Object evaluate(java.lang.Object context)
throws BadContextException,
BadExpressionException
context - The context to be used to evaluate this expression
BadContextException - If the context of the expression is not valid.
BadExpressionException - If the expression of a scheme is invalidpublic java.util.List getScheme()
public int[] getChildSequence()
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||