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

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.AgreementOfferType
All Implemented Interfaces:
AgreementOffer
Direct Known Subclasses:
ComputeJobOffer, SampleAgreementOffer

public class AgreementOfferType
extends WSAGXmlType
implements AgreementOffer

AgreementOfferType

Author:
Oliver Waeldrich

Constructor Summary
AgreementOfferType(AgreementTemplateType template)
          Initializes an agreement offer from a template.
AgreementOfferType(AgreementType offer)
          Initializes an agreement offer from a agreement type.
AgreementOfferType(NegotiationOfferType negotiationOffer)
          Initializes an agreement offer from a negotiation offer.
AgreementOfferType(NegotiationOfferTypeImpl negotiationOffer)
          Constructs a quote for the given negotiation offer.
 
Method Summary
 String getAgreementId()
          
 AgreementContextType getContext()
          
 EndpointReferenceType getInitiatorEPR()
          
 String getName()
          
 NoncriticalExtensionType[] getNoncriticalExtensions()
          
 TermTreeType getTerms()
          
 AgreementType getXMLObject()
          
 void setAgreementId(String agreementId)
          
 void setContext(AgreementContextType context)
          
 void setInitiatorEPR(EndpointReferenceType initiatorAgreementEPR)
          
 void setName(String name)
          
 void setNoncriticalExtensions(NoncriticalExtensionType[] noncriticalExtensionArray)
          
 void setTerms(TermTreeType terms)
          
 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

AgreementOfferType

public AgreementOfferType(AgreementTemplateType template)
Initializes an agreement offer from a template.

Parameters:
template - the template that is used to create the offer

AgreementOfferType

public AgreementOfferType(NegotiationOfferTypeImpl negotiationOffer)
Constructs a quote for the given negotiation offer.

Parameters:
negotiationOffer - the negotiation offer

AgreementOfferType

public AgreementOfferType(NegotiationOfferType negotiationOffer)
Initializes an agreement offer from a negotiation offer.

Parameters:
negotiationOffer - the negotiation offer that is used to create the agreement offer

AgreementOfferType

public AgreementOfferType(AgreementType offer)
Initializes an agreement offer from a agreement type.

Parameters:
offer - the offer that is used to create this object
Method Detail

getInitiatorEPR

public EndpointReferenceType getInitiatorEPR()

Specified by:
getInitiatorEPR in interface AgreementOffer
Returns:
the initiator agreement EPR

getNoncriticalExtensions

public NoncriticalExtensionType[] getNoncriticalExtensions()

Specified by:
getNoncriticalExtensions in interface AgreementOffer
Returns:
the non-critical extensions of an offer

setInitiatorEPR

public void setInitiatorEPR(EndpointReferenceType initiatorAgreementEPR)

Specified by:
setInitiatorEPR in interface AgreementOffer
Parameters:
initiatorAgreementEPR - the initiator agreement EPR to set

setNoncriticalExtensions

public void setNoncriticalExtensions(NoncriticalExtensionType[] noncriticalExtensionArray)

Specified by:
setNoncriticalExtensions in interface AgreementOffer
Parameters:
noncriticalExtensionArray - the non-critical extensions to set

getAgreementId

public String getAgreementId()

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

getContext

public AgreementContextType getContext()

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

getName

public String getName()

Specified by:
getName in interface AgreementOffer
Returns:
the agreement name

getTerms

public TermTreeType getTerms()

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

setAgreementId

public void setAgreementId(String agreementId)

Specified by:
setAgreementId in interface AgreementOffer
Parameters:
agreementId - agreement id

setContext

public void setContext(AgreementContextType context)

Specified by:
setContext in interface AgreementOffer
Parameters:
context - the agreement context to set

setName

public void setName(String name)

Specified by:
setName in interface AgreementOffer
Parameters:
name - the agreement name to set

setTerms

public void setTerms(TermTreeType terms)

Specified by:
setTerms in interface AgreementOffer
Parameters:
terms - the agreement terms to set

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.

getXMLObject

public AgreementType getXMLObject()

Specified by:
getXMLObject in interface AgreementOffer
Returns:
the XML representation of the offer


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