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

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.AbstractAgreementFactoryType
All Implemented Interfaces:
AgreementFactory
Direct Known Subclasses:
SampleAgreementFactory

public abstract class AbstractAgreementFactoryType
extends WSAGXmlType
implements AgreementFactory

AbstractAgreementFactoryType

Author:
Oliver Waeldrich

Constructor Summary
AbstractAgreementFactoryType()
          Default constructor
 
Method Summary
 AgreementTemplateType addNewTemplate()
          Adds a new template to the agreement factory properties of this instance
 AgreementTemplateType getTemplateArray(int index)
           
 AgreementTemplateType[] getTemplates()
           
 org.apache.xmlbeans.XmlObject getXMLObject()
           
protected  void initialize()
          initializes the agreement factory properties of this instance
 void setTemplateArray(AgreementTemplateType[] templateArray)
          Sets the agreement templates for this factory
 void setTemplateArray(int index, AgreementTemplateType template)
          Updates the template at the position specified by the index parameter.
 int sizeOfTemplateArray()
           
 boolean validate()
          validates the agreement factory properties of this instance 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
 
Methods inherited from interface org.ogf.graap.wsag.api.AgreementFactory
createAgreement, initiateNegotiation
 

Constructor Detail

AbstractAgreementFactoryType

public AbstractAgreementFactoryType()
Default constructor

Method Detail

initialize

protected void initialize()
initializes the agreement factory properties of this instance


validate

public boolean validate()
validates the agreement factory properties of this instance Validates the internal XML object representation.

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

addNewTemplate

public AgreementTemplateType addNewTemplate()
Adds a new template to the agreement factory properties of this instance

Returns:
the new template

getTemplates

public AgreementTemplateType[] getTemplates()
Specified by:
getTemplates in interface AgreementFactory
Returns:
the templates supported by this factory instance

getTemplateArray

public AgreementTemplateType getTemplateArray(int index)
Parameters:
index - specifies the template to return
Returns:
the template specified by the index

setTemplateArray

public void setTemplateArray(AgreementTemplateType[] templateArray)
Sets the agreement templates for this factory

Parameters:
templateArray - the template array to set

setTemplateArray

public void setTemplateArray(int index,
                             AgreementTemplateType template)
Updates the template at the position specified by the index parameter.

Parameters:
index - the index of the template to set
template - the template top set

sizeOfTemplateArray

public int sizeOfTemplateArray()
Returns:
the number of templates exposed by this factory instance

getXMLObject

public org.apache.xmlbeans.XmlObject getXMLObject()
Returns:
the XML representation of the agreement factory resource properties


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