Package com.highdeal.rangetable.hci
Class CommonRangeTableModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.chrono.hci.BaseChronologyModel<RangeTablePeriodObjectModel>
com.highdeal.rangetable.hci.CommonRangeTableModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMapping,XMLMarshallable
- Direct Known Subclasses:
RangeTableModel,SubscriberRangeTableModel
public abstract class CommonRangeTableModel
extends BaseChronologyModel<RangeTablePeriodObjectModel>
implements XMLMapping
This
abstract Java class facilitates the handling of range tables and
subscriber range tables
in master data managed by the connected SAP CC Core Server system and stored in its back-end database system.
Structure
Rows
This model defines the common structure of range tables and subscriber range tables in Java technology;
it contains periods that define the rows or the range sets of a range table for different periods of time.
Custom data: Additional information
You can customize the data model by specifying some additional information.
Versions
This class defines the different versions of a range table (or subscriber range table). Refer to the
CommonRangeTableRevisionModel class
Consider the chronologies of rows or range sets.
Note
Refer to the SAP CC Application Help in the SAP CC 5.0 product documentation for more information about:
- range tables and range table classes in master data (pricing catalog of the service provider)
- subscriber range tables in customer master data (information relating to the end customers of the service provider)
Consult the Features, Master Data, and Processes and Functions sections.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="CommonRangeTableType" abstract="true">
<xs:sequence>
<xs:element name="description" type="DescriptionType" minOccurs="0" maxOccurs="1" />
<xs:element name="additionalInfo" type="AdditionalInfoType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="period" type="RangeTablePeriodObjectType" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="id" type="xs:string" />
<xs:attribute name="rangeTableClassId" type="xs:string" />
</xs:complexType>
-
Constructor Summary
Constructors -
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.Gets the list of information dedicated to external system.Class<?>getClass(String nsUri, String tag, XMLAttributes atts) Returns theJava classfor a specifiedXML tagand its attributes in a namespace.Gets the comprehensive description of the range table.getId()Gets the range tableidentifier.Gets the range table class code used by this instance.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetDescription(String description) Sets the comprehensive description of the range table.voidSets theidentifierof the range table.voidsetRangeTableClassId(String rangeTableClassId) Sets the range table class code that contains the table scheme.Methods inherited from class com.highdeal.chrono.hci.BaseChronologyModel
getPeriod, getPeriods, getTagNameMethods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Constructor Details
-
CommonRangeTableModel
public CommonRangeTableModel()
-
-
Method Details
-
getId
Gets the range tableidentifier.- Returns:
- A string that contains the
identifierof the range table
-
setId
Sets theidentifierof the range table.- Parameters:
id- Theidentifierto set to the range table
-
getRangeTableClassId
Gets the range table class code used by this instance.- Returns:
- A string that contains the range table class identifier to recover the scheme of the table
- See Also:
-
setRangeTableClassId
Sets the range table class code that contains the table scheme.- Parameters:
rangeTableClassId- The identifier of the range table class to use
-
getDescription
Gets the comprehensive description of the range table. Allow a better understanding about this range table.- Returns:
- The text description of the range table
-
setDescription
Sets the comprehensive description of the range table. Allow a better understanding about this range table.- Parameters:
description- The text description of the range table
-
getAdditionalInfoList
Gets the list of information dedicated to external system. The designer of the range table adds information allowing an external system tosearchits specific range table. An additional information is a property defined by its name and its value.- Returns:
- The list of information dedicated to external system
-
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- Overrides:
addChildin classBaseChronologyModel<RangeTablePeriodObjectModel>- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Overrides:
setAttributesin classBaseChronologyModel<RangeTablePeriodObjectModel>- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Overrides:
addCharacterDatain classBaseChronologyModel<RangeTablePeriodObjectModel>- Parameters:
CData- The character data to be added
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Specified by:
marshalAttributesin interfaceIXMLMarshallable- Overrides:
marshalAttributesin classBaseChronologyModel<RangeTablePeriodObjectModel>- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Specified by:
marshalChildrenin interfaceIXMLMarshallable- Overrides:
marshalChildrenin classBaseChronologyModel<RangeTablePeriodObjectModel>- Parameters:
output- TheXML outputto marshal the child objects into
-
getClass
Description copied from interface:XMLMappingReturns theJava classfor a specifiedXML tagand its attributes in a namespace.- Specified by:
getClassin interfaceXMLMapping- Parameters:
nsUri- The unique resource identifier of the namespace of the XML tagtag- The local part of the XML tagatts- The attributes of the XML tag- Returns:
- A
Java classwith a default constructor
-