|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ogf.graap.wsag.interpreter.expr.AbstractExpression
public abstract class AbstractExpression
WS-Agreement allows to logically compose terms in an agreement using a simple expression language. Terms
can be composed using logical AND (All), OR (OneOrMore), and XOR (ExacltyOne) operations in the agreement
terms. This abstract expression implementation is the base class for the concrete implementations. It is
used by the AgreementInterpreter that evaluates the validity of the
agreement terms in an offer with respect to the expression language.
AgreementInterpreter| Constructor Summary | |
|---|---|
AbstractExpression(TermCompositorType term)
Creates an expression for a given term compositor. |
|
| Method Summary | |
|---|---|
TermType[] |
interpret(InterpreterContext context)
interprets an expression |
protected abstract TermType[] |
interpret(TermType[] terms,
InterpreterContext context)
template method that implements a specific interpretation strategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractExpression(TermCompositorType term)
term - the agreement term compositor| Method Detail |
|---|
protected abstract TermType[] interpret(TermType[] terms,
InterpreterContext context)
throws InterpreterException
terms - the terms to interpretcontext - the interpreter context
InterpreterException - indicates an error during the term interpretation
public TermType[] interpret(InterpreterContext context)
throws InterpreterException
interpret in interface IExpressioncontext - the interpreter context
InterpreterException - indicates an error while processing the context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||