public class ChargeableItemDescriptionModel extends Object implements XMLMarshallable
Java class represents a chargeable item class the scheme of incoming chargeable items that
is added to a Chargeable Item Package.
Concepts and Terminology
Since version 2.0, the functional concept is a chargeable item class. The SAP user configures this business object in the SAP CC Core Tool user interface when designing and configuring the pricing logic relevant for the pricing of customer service use (consumption, periodic fees, one off fees).
The technical concept in Java technology remains this
ChargeableItemDescriptionModel class.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="item">
<xs:complexType>
<xs:sequence>
<xs:element ref="prop" minOccurs="0" maxOccurs="unbounded"/> <!-- custom properties -->
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
ChargeableItemDescriptionModel()
Builds an empty ChargeableItemDescriptionModel.
|
ChargeableItemDescriptionModel(String name,
String description)
Builds a ChargeableItemDescriptionModel.
|
ChargeableItemDescriptionModel(String name,
String description,
Vector<PropertyDescriptionModel> propertyDescList)
Builds a ChargeableItemDescriptionModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagname,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Tests if a name exists.
|
String |
getDescription()
Returns the comprehensive description of this chargeable item description.
|
String |
getName()
Returns the name of the chargeable item.
|
Vector<PropertyDescriptionModel> |
getPropertyDescriptions()
Returns the list of the user properties (custom properties) declared in the chargeable item description (chargeable item class).
|
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 |
setDescription(String desc)
Sets a comprehensive description for this chargeable item description.
|
void |
setName(String n)
Sets the name of the chargeable item class (formerly chargeable item description).
|
public ChargeableItemDescriptionModel()
public ChargeableItemDescriptionModel(String name, String description)
name - The name of the chargeable itemdescription - A textual description for this chargeable item descriptionpublic ChargeableItemDescriptionModel(String name, String description, Vector<PropertyDescriptionModel> propertyDescList)
name - The name of the description; it must be unique inside a product.description - A textual description of the chargeable item descriptionpropertyDescList - The list of associated PropertyDescriptionModel
for the chargeable item description.public String getDescription()
public void setDescription(String desc)
desc - The text description of this chargeable item descriptionpublic String getName()
public void setName(String n)
n - The name of this chargeable item descriptionpublic Vector<PropertyDescriptionModel> getPropertyDescriptions()
PropertyDescriptionModelpublic boolean checkValidity()
true if the name and property descriptions are valid; false otherwisepublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagname, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagname - The name of tag for the childchild - The child to be addedpublic void addCharacterData(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