|
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.ProductModel
public class ProductModel
This class represents a product that corresponds to something that can be charged.
| XML Schema Fragment |
<xs:element name="product">
<xs:complexType>
<xs:sequence>
<xs:element ref="item" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="vendor" type="xs:string" use="required"/>
</xs:complexType>
</xs:element> |
| Constructor Summary | |
|---|---|
ProductModel()
Builds an empty product. |
|
ProductModel(java.lang.String code,
java.lang.String description)
Builds a product from a code and a description. |
|
ProductModel(java.lang.String code,
java.lang.String description,
java.lang.String p)
Builds a product from a code, a description and a vendor. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChargeableItemDescription(ChargeableItemDescriptionModel cid)
Adds a chargeable item description to the list which defines the product. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the objects, the child represents
the marshallable object to be added into the content tree. |
boolean |
checkValidity()
Tests if the product is valid. |
java.util.Vector<ChargeableItemDescriptionModel> |
getChargeableItemDescriptions()
Returns the list of chargeable item description which defines the product. |
java.lang.String |
getCode()
Returns the code of the product. |
java.lang.String |
getDescription()
Returns the description of the product. |
java.lang.String |
getReference()
Returns the reference of the product. |
java.lang.String |
getVendor()
Returns the vendor of the product. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its children. |
void |
removeChargeableItemDescription(int index)
Removes a chargeable item description from the list which defines the product. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing processed. |
void |
setChargeableItemDescriptions(java.util.Vector<ChargeableItemDescriptionModel> descriptions)
Sets the list of chargeable item description which defines the product. |
void |
setCode(java.lang.String code)
Sets the code of the product. |
void |
setDescription(java.lang.String description)
Sets the description of the product. |
void |
setReference(java.lang.String reference)
Sets the reference of the product. |
void |
setVendor(java.lang.String v)
Sets the vendor of the product. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProductModel()
public ProductModel(java.lang.String code,
java.lang.String description)
code - the code of the product.description - the description of the product.
public ProductModel(java.lang.String code,
java.lang.String description,
java.lang.String p)
code - the code of the product.description - the description of the product.p - the vendor of the product.| Method Detail |
|---|
public java.lang.String getReference()
public void setReference(java.lang.String reference)
reference - the reference.public java.lang.String getCode()
public void setCode(java.lang.String code)
code - the code of this product.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description of this product.public java.util.Vector<ChargeableItemDescriptionModel> getChargeableItemDescriptions()
ChargeableItemDescriptionModel.public void setChargeableItemDescriptions(java.util.Vector<ChargeableItemDescriptionModel> descriptions)
descriptions - a Vector of ChargeableItemDescriptionModel.public java.lang.String getVendor()
public void setVendor(java.lang.String v)
v - the vendor of the product.public void addChargeableItemDescription(ChargeableItemDescriptionModel cid)
cid - the ChargeableItemDescriptionModel to add.public void removeChargeableItemDescription(int index)
index - the index of the chargeable item description to remove.public boolean checkValidity()
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - the XML attributes of the current tag.
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild represents
the marshallable object to be added into the content tree.
addChild in interface XMLMarshallabletagName - 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.
|
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.