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

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.NegotiationOfferTypeImpl
All Implemented Interfaces:
NegotiationOffer
Direct Known Subclasses:
SampleNegotiationOffer

public class NegotiationOfferTypeImpl
extends WSAGXmlType
implements NegotiationOffer

NegotiationOfferType

Author:
hrasheed

Constructor Summary
NegotiationOfferTypeImpl(AgreementTemplateType template)
          Initializes an negotiation offer from a template.
NegotiationOfferTypeImpl(NegotiationOfferType negotiationOffer)
          Initializes a negotiation offer from a negotiation offer.
 
Method Summary
 String getAgreementId()
           
 AgreementContextType getContext()
          The context of the agreement to negotiate.
 String getName()
           
 NegotiationConstraintSectionType getNegotiationConstraints()
           
 NegotiationOfferContextType getNegotiationOfferContext()
           
 String getOfferId()
           
 TermTreeType getTerms()
           
 NegotiationOfferType getXMLObject()
           
 void setAgreementId(String id)
           
 void setContext(AgreementContextType context)
           
 void setName(String name)
           
 void setNegotiationConstraints(NegotiationConstraintSectionType constraints)
           
 void setNegotiationOfferContext(NegotiationOfferContextType negOffercontext)
           
 void setOfferId(String id)
           
 void setTerms(TermTreeType terms)
           
 boolean validate()
          Validates the internal XML representation of this object.
 
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

NegotiationOfferTypeImpl

public NegotiationOfferTypeImpl(AgreementTemplateType template)
Initializes an negotiation offer from a template.

Parameters:
template - the template used to create the negotiation offer

NegotiationOfferTypeImpl

public NegotiationOfferTypeImpl(NegotiationOfferType negotiationOffer)
Initializes a negotiation offer from a negotiation offer.

Parameters:
negotiationOffer - the negotiation offer used to create this type
Method Detail

getOfferId

public String getOfferId()
Specified by:
getOfferId in interface NegotiationOffer
Returns:
the offer id

setOfferId

public void setOfferId(String id)
Specified by:
setOfferId in interface NegotiationOffer
Parameters:
id - offer id

getName

public String getName()
Specified by:
getName in interface NegotiationOffer
Returns:
the offer name

setName

public void setName(String name)
Specified by:
setName in interface NegotiationOffer
Parameters:
name - the offer name to set

getAgreementId

public String getAgreementId()
Specified by:
getAgreementId in interface NegotiationOffer
Returns:
the agreement id

setAgreementId

public void setAgreementId(String id)
Specified by:
setAgreementId in interface NegotiationOffer
Parameters:
id - agreement id

getContext

public AgreementContextType getContext()
The context of the agreement to negotiate.

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

setContext

public void setContext(AgreementContextType context)
Specified by:
setContext in interface NegotiationOffer
Parameters:
context - the agreement context to set

getTerms

public TermTreeType getTerms()
Specified by:
getTerms in interface NegotiationOffer
Returns:
the negotiation terms

setTerms

public void setTerms(TermTreeType terms)
Specified by:
setTerms in interface NegotiationOffer
Parameters:
terms - the negotiation terms to set

getNegotiationOfferContext

public NegotiationOfferContextType getNegotiationOfferContext()
Specified by:
getNegotiationOfferContext in interface NegotiationOffer
Returns:
the negotiation offer context

setNegotiationOfferContext

public void setNegotiationOfferContext(NegotiationOfferContextType negOffercontext)
Specified by:
setNegotiationOfferContext in interface NegotiationOffer
Parameters:
negOffercontext - the negotiation offer context to set

getNegotiationConstraints

public NegotiationConstraintSectionType getNegotiationConstraints()
Specified by:
getNegotiationConstraints in interface NegotiationOffer
Returns:
the negotiation constraints

setNegotiationConstraints

public void setNegotiationConstraints(NegotiationConstraintSectionType constraints)
Specified by:
setNegotiationConstraints in interface NegotiationOffer
Parameters:
constraints - the negotiation constraints to set

getXMLObject

public NegotiationOfferType getXMLObject()
Specified by:
getXMLObject in interface NegotiationOffer
Returns:
the XML representation of the negotiation offer

validate

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

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


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