|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.OfferConditionModel
public class OfferConditionModel
This class represents the information to subscribe and use an offer inside a packaged offer.
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 Summary | |
|---|---|
OfferConditionModel()
Builds an empty OfferConditionModel. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OfferConditionModel()
| Method Detail |
|---|
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)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public 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)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||