Package com.highdeal.pnr.hci
Class ChargeableItemDescriptionModel
java.lang.Object
com.highdeal.pnr.hci.ChargeableItemDescriptionModel
- All Implemented Interfaces:
XMLMarshallable
This
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.
XML API for HCI
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 Summary
ConstructorsConstructorDescriptionBuilds an empty ChargeableItemDescriptionModel.ChargeableItemDescriptionModel(String name, String description) Builds a ChargeableItemDescriptionModel.ChargeableItemDescriptionModel(String name, String description, Vector<PropertyDescriptionModel> propertyDescList) Builds a ChargeableItemDescriptionModel. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagname, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.booleanTests if a name exists.Returns the comprehensive description of this chargeable item description.getName()Returns the name of the chargeable item.Returns the list of the user properties (custom properties) declared in the chargeable item description (chargeable item class).voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetDescription(String desc) Sets a comprehensive description for this chargeable item description.voidSets the name of the chargeable item class (formerly chargeable item description).
-
Constructor Details
-
ChargeableItemDescriptionModel
public ChargeableItemDescriptionModel()Builds an empty ChargeableItemDescriptionModel. -
ChargeableItemDescriptionModel
Builds a ChargeableItemDescriptionModel.- Parameters:
name- The name of the chargeable itemdescription- A textual description for this chargeable item description
-
ChargeableItemDescriptionModel
public ChargeableItemDescriptionModel(String name, String description, Vector<PropertyDescriptionModel> propertyDescList) Builds a ChargeableItemDescriptionModel.- Parameters:
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 associatedPropertyDescriptionModelfor the chargeable item description.
-
-
Method Details
-
getDescription
Returns the comprehensive description of this chargeable item description.- Returns:
- The text description of this chargeable item description
-
setDescription
Sets a comprehensive description for this chargeable item description.- Parameters:
desc- The text description of this chargeable item description
-
getName
Returns the name of the chargeable item.- Returns:
- The name of the chargeable item
-
setName
Sets the name of the chargeable item class (formerly chargeable item description).- Parameters:
n- The name of this chargeable item description
-
getPropertyDescriptions
Returns the list of the user properties (custom properties) declared in the chargeable item description (chargeable item class).- Returns:
- The list of the associated
PropertyDescriptionModel
-
checkValidity
public boolean checkValidity()Tests if a name exists.- Returns:
trueif the name and property descriptions are valid;falseotherwise
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagname- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-