|
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.OfferModel
public class OfferModel
This Java class represents an offer in master data of a service provider.
CreateOfferOpThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="offer">
<xs:complexType>
<xs:sequence>
<xs:element ref="offerContext" minOccurs="0" maxOccurs="1"/>
<xs:element ref="offerCondition" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="chargeCondition" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="additionalInformation" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="chargeDependency" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="counterDescription" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="offerContextChronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="owner" type="xs:string" use="required"/>
<xs:attribute name="shortDescription" type="xs:string"/>
<xs:attribute name="longDescription" type="xs:string"/>
<xs:attribute name="effective" type="xs:dateTime" use="required"/>
<xs:attribute name="expiration" type="xs:dateTime"/>
</xs:complexType>
</xs:element>
<xs:element name="offerContextChronology">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Constructor Summary | |
|---|---|
OfferModel()
Builds an empty OfferModel. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
ChargeConditionModel |
addCharge(ChargeComponentModel charge)
|
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. |
OfferConditionModel |
addSubOffer(OfferModel offer)
|
boolean |
doesChargeDependenciesContainsCycle()
|
java.util.Vector<AdditionalInfoModel> |
getAdditionalInfos()
Returns the list of AdditionalInfoModel. |
java.util.Vector<ChargeConditionModel> |
getChargeConditions()
Returns the list of ChargeConditionModel. |
java.util.Vector<ChargeDependencyModel> |
getChargeDependencies()
Returns the list of ChargeDependencyModel. |
java.lang.String |
getCode()
Returns the code of this offer. |
OfferContextModel |
getContext()
Returns the offer context of this offer. |
ChronologyModel |
getContextChronology()
Returns the offer context chronology of this offer. |
java.util.Vector<CounterDescriptionModel> |
getCounterDescriptions()
Returns the list of the associated counter descriptions. |
java.util.Date |
getEffective()
Returns the effective date of this offer. |
java.util.Date |
getExpiration()
Returns the expiration date of this offer. |
java.lang.String |
getLongDescription()
Returns the long description of this offer. |
java.util.Vector<OfferConditionModel> |
getOfferConditions()
Returns the list of OfferConditionModel. |
java.lang.String |
getOwner()
Returns the owner of this offer. |
java.lang.String |
getReference()
Returns the reference of this offer. |
java.lang.String |
getShortDescription()
Returns the short description of this offer. |
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
java.util.Vector<ChargeConditionModel> |
retrieveAllChargeConditions()
Returns the charge conditions of this offer and all the charge conditions of its offer conditions. |
java.util.Vector<ChargeConditionModel> |
retrieveInvalidChargeSubCodes()
Checks that the sub codes of the charge conditions are unique. |
java.util.Vector<OfferConditionModel> |
retrieveInvalidOfferConditionSubCodes()
Checks that the sub codes of the offer conditions are unique. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setCode(java.lang.String code)
Sets the code for this offer. |
void |
setContext(OfferContextModel context)
Sets the offer context of this offer. |
void |
setEffective(java.util.Date effective)
Sets the effective date of this offer. |
void |
setExpiration(java.util.Date expiration)
Sets the expiration date of this offer. |
void |
setLongDescription(java.lang.String description)
Sets the long description of this offer. |
void |
setOwner(java.lang.String owner)
Sets the owner of this offer. |
void |
setReference(java.lang.String reference)
Sets the reference of this offer. |
void |
setShortDescription(java.lang.String description)
Sets the short description of this offer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OfferModel()
| Method Detail |
|---|
public java.lang.String getCode()
setCode(String)public void setCode(java.lang.String code)
code - the code for this offergetCode()public java.lang.String getReference()
setReference(String)public void setReference(java.lang.String reference)
reference - The reference of this offergetReference()public java.lang.String getOwner()
getOwner in interface ICatalogObjectsetOwner(String)public void setOwner(java.lang.String owner)
owner - The owner of this offergetOwner()public java.lang.String getShortDescription()
setShortDescription(String)public void setShortDescription(java.lang.String description)
description - The short description of this offergetShortDescription()public java.lang.String getLongDescription()
setLongDescription(String)public void setLongDescription(java.lang.String description)
description - The long description of this offergetLongDescription()public java.util.Date getEffective()
setEffective(Date)public void setEffective(java.util.Date effective)
effective - The effective date of this offergetEffective()public java.util.Date getExpiration()
setExpiration(Date)public void setExpiration(java.util.Date expiration)
expiration - The expiration date of this offergetExpiration()public java.util.Vector<OfferConditionModel> getOfferConditions()
OfferConditionModel that represents
the associated offer conditionspublic java.util.Vector<ChargeConditionModel> getChargeConditions()
ChargeConditionModel
that represents the associated charge conditionspublic java.util.Vector<AdditionalInfoModel> getAdditionalInfos()
AdditionalInfoModel
that represents the associated additional infopublic java.util.Vector<CounterDescriptionModel> getCounterDescriptions()
CounterDescriptionModel that
represents the associated counter descriptionspublic ChronologyModel getContextChronology()
offerContext in a Chronologypublic void setContext(OfferContextModel context)
context - The offer context of this offerpublic OfferContextModel getContext()
public java.util.Vector<ChargeDependencyModel> getChargeDependencies()
ChargeDependencyModel that
represents the associated charge dependenciespublic java.lang.String getTagName()
ITagNameProvider
getTagName in interface ITagNameProviderpublic 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 intopublic OfferConditionModel addSubOffer(OfferModel offer)
public ChargeConditionModel addCharge(ChargeComponentModel charge)
public boolean doesChargeDependenciesContainsCycle()
public java.util.Vector<ChargeConditionModel> retrieveAllChargeConditions()
ChargeConditionModelpublic java.util.Vector<OfferConditionModel> retrieveInvalidOfferConditionSubCodes()
string that represents
the duplicated sub codes if exists. The list is empty if
it doesn't exist duplicated sub code.public java.util.Vector<ChargeConditionModel> retrieveInvalidChargeSubCodes()
chargeConditions of this offer
and all the charge conditions of the offerConditions of this offer.
string that represents
the duplicated sub codes if exists. The list is empty if
it doesn't exist duplicated sub code.
|
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 | ||||||||