|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.server.engine.TemplateValidator
public class TemplateValidator
The TemplateValidator
implements the required methods to validate the compliance of an agreement
offer with respect to the creation constraints that are defined in the template that was used to create the
offer.
Constructor Summary | |
---|---|
TemplateValidator()
|
Method Summary | |
---|---|
ValidatorType |
getConfiguration()
Returns the validator configuration. |
static void |
main(String[] args)
Command line invocation of the validator. |
void |
setConfiguration(ValidatorType configuration)
Sets the validator configuration. |
boolean |
validate(AgreementOffer offer,
AgreementTemplateType template)
Validates an agreement offer against a template. |
boolean |
validate(AgreementOffer offer,
AgreementTemplateType template,
StringBuffer error)
Validates an agreement offer against a template. |
boolean |
validate(AgreementOfferDocument offer,
TemplateDocument template)
Validates an agreement offer document against a template document. |
boolean |
validate(NegotiationOfferType offer,
AgreementTemplateType template)
Validates a negotiation offer against a template. |
boolean |
validate(NegotiationOfferType offer,
NegotiationOfferType counterOffer)
Validates a negotiation counter offer against a negotiation offer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateValidator()
Method Detail |
---|
public static void main(String[] args)
args
- program arguments, see infopublic boolean validate(AgreementOfferDocument offer, TemplateDocument template)
offer
- the offer to validatetemplate
- the template containing the creation constraints
true
if the offer is valid, otherwise false
public boolean validate(AgreementOffer offer, AgreementTemplateType template, StringBuffer error)
offer
- the offer to validatetemplate
- the template containing the creation constraintserror
- contains the error message if the validation process failed
true
if the offer is valid, otherwise false
public boolean validate(AgreementOffer offer, AgreementTemplateType template)
offer
- the offer to validatetemplate
- the template containing the creation constraints
true
if the offer is valid, otherwise false
public boolean validate(NegotiationOfferType offer, AgreementTemplateType template)
offer
- the offer to validatetemplate
- the template containing the creation constraints
true
if the offer is valid, otherwise false
public boolean validate(NegotiationOfferType offer, NegotiationOfferType counterOffer)
offer
- the offer containing the negotiation constraintscounterOffer
- the counter offer to validate
true
if the offer is valid, otherwise false
public ValidatorType getConfiguration()
public void setConfiguration(ValidatorType configuration)
configuration
- the validator configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |