org.ogf.graap.wsag.interpreter
Class AgreementInterpreter
java.lang.Object
org.ogf.graap.wsag.interpreter.AgreementInterpreter
public class AgreementInterpreter
- extends Object
The agreement interpreter evaluates the agreement language in the agreement terms property and checks
whether or not the agreement is valid with respect to term composition.
- Author:
- Oliver Waeldrich
Method Summary |
AgreementTemplateType |
process(AgreementTemplateType template)
Evaluates the term composition in the given template and returns the template if the terms in the
template are valid with respect to term composition. |
AgreementType |
process(AgreementType agreement)
Evaluates the term composition in the given agreement and returns the agreement object if the terms are
valid with respect to term composition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgreementInterpreter
public AgreementInterpreter()
process
public AgreementTemplateType process(AgreementTemplateType template)
throws InterpreterException
- Evaluates the term composition in the given template and returns the template if the terms in the
template are valid with respect to term composition. Otherwise an exception is thrown.
- Parameters:
template
- the template to evaluate
- Returns:
- the valid template
- Throws:
InterpreterException
- error during term processing
process
public AgreementType process(AgreementType agreement)
throws InterpreterException
- Evaluates the term composition in the given agreement and returns the agreement object if the terms are
valid with respect to term composition.
- Parameters:
agreement
- the agreement to evaluate
- Returns:
- the valid agreement
- Throws:
InterpreterException
- error during term processing
Copyright © 2008-2012. All Rights Reserved.