public class OfferConditionModel extends java.lang.Object implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="offerCondition">
<xs:complexType>
<xs:sequence>
<xs:element ref="chargeCondition" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="counterDescription" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="offerConditionContext" minOccurs="0" maxOccurs="1"/>
<xs:element ref="offerConditionContextChronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="subCode" type="xs:string" use="required"/>
<xs:attribute name="offerCode" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="optionalOrder" type="xs:boolean" default="false"/>
<xs:attribute name="orderMinimum" type="xs:decimal" default="1"/>
<xs:attribute name="orderMaximum" type="xs:decimal" default="1"/>
<xs:attribute name="orderStep" type="xs:decimal" default="1"/>
</xs:complexType>
</xs:element>
<xs:element name="offerConditionContextChronology">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
OfferConditionModel()
Builds an empty OfferConditionModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.util.Vector<ChargeConditionModel> |
getChargeConditions()
Returns the list of BusinessRelationshipModel.
|
OfferConditionContextModel |
getContext()
Returns the context of this offer condition.
|
ChronologyModel |
getContextChronology()
Returns the context chronology of this offer condition.
|
java.util.Vector<CounterDescriptionModel> |
getCounterDescriptions()
Returns the list of
CounterDescriptionModel. |
java.lang.String |
getOfferCode()
Returns the target offer code of this offer condition.
|
java.util.Vector<CounterDescriptionModel> |
getOfferContextCounters()
Gets the list of counters that are shared by the offer.
|
java.util.Vector<ParameterModel> |
getOfferContextParameters(java.util.Date date)
Gets the list of parameters that are shared by the offer.
|
java.util.Vector<TierTableInstanceModel> |
getOfferContextTierTableInstances(java.util.Date date)
Gets the list of tier table instances that are shared by the offer.
|
java.util.Vector<TranslationInstanceModel> |
getOfferContextTranslationInstances(java.util.Date date)
Gets the list of translation instances that are shared by the offer.
|
int |
getOrderMaximum()
Returns the order maximum of this offer condition.
|
int |
getOrderMinimum()
Returns the order minimum of this offer condition.
|
int |
getOrderStep()
Returns the order step of this offer condition.
|
OfferModel |
getParentOffer() |
java.lang.String |
getReference()
Returns the reference of this offer condition in the database.
|
java.lang.String |
getSubCode()
Returns the sub code of this offerCondition.
|
boolean |
isOptionalOrder()
Returns the optional order flag of this offer condition.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setContext(OfferConditionContextModel context)
Sets the offer context of this offer condition.
|
void |
setOfferCode(java.lang.String offerCode)
Sets the target offer code of this offer condition.
|
void |
setOptionalOrder(boolean optionalOrder)
Sets the optional order flag of this offer condition.
|
void |
setOrderMaximum(int orderMaximum)
Sets the order maximum of this offer condition.
|
void |
setOrderMinimum(int orderMinimum)
Sets the order minimum of this offer condition.
|
void |
setOrderStep(int orderStep)
Sets the order step of this offer condition.
|
void |
setParentOffer(OfferModel parentOffer) |
void |
setReference(java.lang.String reference)
Sets the reference of this offer condition.
|
void |
setSubCode(java.lang.String code)
Sets the sub code for this offerCondition.
|
public OfferConditionModel()
public java.lang.String getSubCode()
setSubCode(String)public void setSubCode(java.lang.String code)
code - getSubCode()public java.lang.String getOfferCode()
setOfferCode(String)public void setOfferCode(java.lang.String offerCode)
offerCode - getOfferCode()public java.lang.String getReference()
setReference(String)public void setReference(java.lang.String reference)
reference - getReference()public boolean isOptionalOrder()
setOptionalOrder(boolean)public void setOptionalOrder(boolean optionalOrder)
optionalOrder - isOptionalOrder()public int getOrderMinimum()
setOrderMinimum(int)public void setOrderMinimum(int orderMinimum)
orderMinimum - getOrderMinimum()public int getOrderMaximum()
setOrderMaximum(int)public void setOrderMaximum(int orderMaximum)
orderMaximum - getOrderMaximum()public int getOrderStep()
setOrderStep(int)public void setOrderStep(int orderStep)
orderStep - getOrderStep()public java.util.Vector<ChargeConditionModel> getChargeConditions()
ChargeConditionModel that
represents the associated business relationships.public java.util.Vector<CounterDescriptionModel> getCounterDescriptions()
CounterDescriptionModel.public ChronologyModel getContextChronology()
context in a Chronology.public void setContext(OfferConditionContextModel context)
context - the context of this offer condition.public OfferConditionContextModel getContext()
public void setParentOffer(OfferModel parentOffer)
public OfferModel getParentOffer()
public java.util.Vector<CounterDescriptionModel> getOfferContextCounters()
counters.public java.util.Vector<ParameterModel> getOfferContextParameters(java.util.Date date)
date - the date to look in the chronology.parameters.public java.util.Vector<TranslationInstanceModel> getOfferContextTranslationInstances(java.util.Date date)
date - the date to look in the chronology.instances.public java.util.Vector<TierTableInstanceModel> getOfferContextTierTableInstances(java.util.Date date)
date - the date to look in the chronology.instances.public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into