COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.validation.internal.reference
Class XPointerScheme

java.lang.Object
  extended by org.eclipse.cosmos.rm.validation.internal.reference.AbstractScheme
      extended by org.eclipse.cosmos.rm.validation.internal.reference.XPointerScheme
All Implemented Interfaces:
IXScheme

public class XPointerScheme
extends AbstractScheme

The XPointer scheme is used to evaluate the parenthesized expressions that appears after the keyword xpointer in an XPointer expression.


Field Summary
static java.lang.String SCHEME
          Represents the keyword to identify this scheme
 
Constructor Summary
XPointerScheme()
           
 
Method Summary
 java.lang.Object evaluate(java.lang.Object context)
          Evaluates this scheme and returns an object as a result of the evaluation.
 java.lang.String getType()
          Returns the type of this scheme
 
Methods inherited from class org.eclipse.cosmos.rm.validation.internal.reference.AbstractScheme
getExpression, setExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME

public static final java.lang.String SCHEME
Represents the keyword to identify this scheme

See Also:
Constant Field Values
Constructor Detail

XPointerScheme

public XPointerScheme()
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.Object context)
                          throws BadExpressionException
Description copied from interface: IXScheme
Evaluates this scheme and returns an object as a result of the evaluation.

Parameters:
context - The context of this scheme
Returns:
An object representing the evaluation of the scheme
Throws:
BadExpressionException - When there is an error in evaluating the expression
See Also:
IXScheme.evaluate(java.lang.Object)

getType

public java.lang.String getType()
Description copied from interface: IXScheme
Returns the type of this scheme

Returns:
The type
See Also:
IXScheme.getType()

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification