org.ogf.graap.wsag.api.types
Class WSAGXmlType

java.lang.Object
  extended by java.util.Observable
      extended by org.ogf.graap.wsag.api.types.WSAGXmlType
Direct Known Subclasses:
AbstractAgreementFactoryType, AbstractAgreementType, AgreementOfferType, NegotiationOfferTypeImpl, TemplateType

public abstract class WSAGXmlType
extends Observable

WSAGXmlType

Author:
Oliver Waeldrich

Constructor Summary
WSAGXmlType()
           
 
Method Summary
protected  AgreementType processTemplate(AgreementTemplateType template)
          Processes an agreement template and strips off the template specific elements, namely the template id and creation constraint section.
abstract  boolean validate()
          Validates the internal XML object representation.
 boolean validate(org.apache.xmlbeans.XmlObject object)
          Validates an XML object against its type definition.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSAGXmlType

public WSAGXmlType()
Method Detail

validate

public abstract boolean validate()
Validates the internal XML object representation.

Returns:
true, if the validation process succeeded, false otherwise.

validate

public boolean validate(org.apache.xmlbeans.XmlObject object)
Validates an XML object against its type definition.

Parameters:
object - the object to validate
Returns:
true, if the validation process succeeded, false otherwise.

processTemplate

protected AgreementType processTemplate(AgreementTemplateType template)
Processes an agreement template and strips off the template specific elements, namely the template id and creation constraint section.

Parameters:
template - the template to process
Returns:
the processed agreement type


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.