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

org.eclipse.cosmos.rm.validation.internal.reference
Interface IXScheme

All Known Implementing Classes:
AbstractScheme, XmlnsScheme, XPointerScheme

public interface IXScheme

This interface is used to represent a XPointer scheme

See Also:
XPointerScheme, XmlnsScheme

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 getExpression()
          Returns the expression associated with this scheme
 java.lang.String getType()
          Returns the type of this scheme
 void setExpression(java.lang.String expression)
          Sets the expression associated with this scheme
 

Method Detail

getExpression

java.lang.String getExpression()
Returns the expression associated with this scheme

Returns:
The string associated with this scheme

setExpression

void setExpression(java.lang.String expression)
Sets the expression associated with this scheme

Parameters:
expression - The expression that should be associated with this scheme

getType

java.lang.String getType()
Returns the type of this scheme

Returns:
The type

evaluate

java.lang.Object evaluate(java.lang.Object context)
                          throws BadExpressionException
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

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