|
SAP CC 1.0
API 4.2 (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 class represents an offer model.
| XML Schema 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="subscriptionReflectMapping" minOccurs="0" maxOccurs="1"/>
<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 objects, the child represents
the marshallable object to be added into the content tree. |
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. |
SubscriptionReflectMappingModel |
getSubscriptionReflectMapping()
Returns the associated subscription refelct mapping. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of 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 uniques. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing 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. |
void |
setSubscriptionReflectMapping(SubscriptionReflectMappingModel subsReflectMapping)
Sets the subscription reflect mapping 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()
setOwner(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 conditions.public java.util.Vector<ChargeConditionModel> getChargeConditions()
ChargeConditionModel
that represents the associated charge conditions.public java.util.Vector<AdditionalInfoModel> getAdditionalInfos()
AdditionalInfoModel
that represents the associated additional info.public java.util.Vector<CounterDescriptionModel> getCounterDescriptions()
CounterDescriptionModel that
represents the associated counter descriptions.public SubscriptionReflectMappingModel getSubscriptionReflectMapping()
subscriptionReflectMapping that
represents the subscription reflect to export.public void setSubscriptionReflectMapping(SubscriptionReflectMappingModel subsReflectMapping)
subsReflectMapping - the subscriptionreflect mapping of this offer.public ChronologyModel getContextChronology()
offerContext in a Chronology.public void setContext(OfferContextModel context)
context - the offer context of this offer.public OfferContextModel getContext()
public java.util.Vector<ChargeDependencyModel> getChargeDependencies()
ChargeDependencyModel that
represents the associated charge dependencies.public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - the XML attributes of the current tag.
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild represents
the marshallable object to be added into the content tree.
addChild in interface XMLMarshallablename - the name of tag for the child.child - the child to be added.public void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - the character data to be added.public void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - the XML output to marshall the object into.public OfferConditionModel addSubOffer(OfferModel offer)
public ChargeConditionModel addCharge(ChargeComponentModel charge)
public boolean doesChargeDependenciesContainsCycle()
public java.util.Vector<ChargeConditionModel> retrieveAllChargeConditions()
ChargeConditionModel.public 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.
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.