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

java.lang.Object
  extended by java.util.Observable
      extended by org.ogf.graap.wsag.api.types.WSAGXmlType
          extended by org.ogf.graap.wsag.api.types.TemplateType
All Implemented Interfaces:
AgreementTemplate
Direct Known Subclasses:
AbstractComputeJobTemplate, SampleAgreementTemplate

public class TemplateType
extends WSAGXmlType
implements AgreementTemplate

AgreementTemplateType

Author:
Oliver Waeldrich

Constructor Summary
TemplateType()
          Default constructor.
TemplateType(AgreementTemplateType template)
          Creates a new template type based on a template XML document.
 
Method Summary
 String getAgreementId()
          
 AgreementContextType getContext()
          
 ConstraintSectionType getCreationConstraints()
          
 String getName()
          
 String getTemplateId()
          
 TermTreeType getTerms()
          
 AgreementTemplateType getXMLObject()
          
 void setAgreementId(String arg0)
          
 void setContext(AgreementContextType arg0)
          
 void setCreationConstraints(ConstraintSectionType arg0)
          
 void setName(String arg0)
          
 void setTemplateId(String arg0)
          
 void setTerms(TermTreeType arg0)
          
 boolean validate()
          Validates the internal XML object representation.
 
Methods inherited from class org.ogf.graap.wsag.api.types.WSAGXmlType
processTemplate, validate
 
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

TemplateType

public TemplateType()
Default constructor.


TemplateType

public TemplateType(AgreementTemplateType template)
Creates a new template type based on a template XML document.

Parameters:
template - the agreement template
Method Detail

validate

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

Specified by:
validate in class WSAGXmlType
Returns:
true, if the validation process succeeded, false otherwise.

getAgreementId

public String getAgreementId()

Specified by:
getAgreementId in interface AgreementTemplate
Returns:
the agreement id

getContext

public AgreementContextType getContext()

Specified by:
getContext in interface AgreementTemplate
Returns:
the agreement context

getCreationConstraints

public ConstraintSectionType getCreationConstraints()

Specified by:
getCreationConstraints in interface AgreementTemplate
Returns:
the template creation constraints

getName

public String getName()

Specified by:
getName in interface AgreementTemplate
Returns:
the template name

getTemplateId

public String getTemplateId()

Specified by:
getTemplateId in interface AgreementTemplate
Returns:
the template id

getTerms

public TermTreeType getTerms()

Specified by:
getTerms in interface AgreementTemplate
Returns:
the agreement terms

setAgreementId

public void setAgreementId(String arg0)

Specified by:
setAgreementId in interface AgreementTemplate
Parameters:
arg0 - the agreement id to set

setContext

public void setContext(AgreementContextType arg0)

Specified by:
setContext in interface AgreementTemplate
Parameters:
arg0 - the context to set

setCreationConstraints

public void setCreationConstraints(ConstraintSectionType arg0)

Specified by:
setCreationConstraints in interface AgreementTemplate
Parameters:
arg0 - the creation constraints to set

setName

public void setName(String arg0)

Specified by:
setName in interface AgreementTemplate
Parameters:
arg0 - the template name to set

setTemplateId

public void setTemplateId(String arg0)

Specified by:
setTemplateId in interface AgreementTemplate
Parameters:
arg0 - the template id to set

setTerms

public void setTerms(TermTreeType arg0)

Specified by:
setTerms in interface AgreementTemplate
Parameters:
arg0 - the terms to set

getXMLObject

public AgreementTemplateType getXMLObject()

Specified by:
getXMLObject in interface AgreementTemplate
Returns:
the XML representation of the template


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