Package com.highdeal.mappingtable.hci
Class MappingTableModel
java.lang.Object
com.highdeal.mappingtable.hci.CommonMappingTableModel
com.highdeal.mappingtable.hci.MappingTableModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMapping,XMLMarshallable,ICatalogObject
This
Java class represents a mapping table in the pricing catalog (master data) of a service provider;
A mapping table is an instance of a mapping table class.
It contains rows with input and output column filled. Several versions of a row can be defined in the table depending on different periods of time.
Implementation Note
Mapping tables and classes are part of the master data. Refer to the SAP CC Application Help for more information about:
- mapping tables
- mapping table classes
If your mapping table must belong to a subscriber account or must be associated to a subset of contracts,
consider the SubscriberMappingTableModel Java class to implement in your client application or system.
Related Operations
CreateMappingTableOpSearchMappingTableOp- Manage rows in mapping tables:
MaintainMappingTableRowOp,ModifyMappingTableRowOp,DeleteMappingTableRowOp DeleteMappingTableOp
Related Information
Consult the SAP CC Application Help for more information about the master data.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="MappingTable">
<xs:complexContent>
<xs:extension base="CommonMappingTable">
<xs:attribute name="owner" type="xs:string" />
<xs:attribute name="agreementId" type="xs:string" />
<xs:attribute name="version" type="xs:long" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="mappingTable" type="MappingTable" />
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the agreement identifier of the mapping table;getOwner()Gets the owner of the mapping table; The owner of the mapping table and mapping table class used have the same owner.Gets the XML tag name of the HCI model.Gets the version of the mapping table.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidsetAgreementId(String id) Sets the agreement identifier of the mapping table;voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets the owner of the mapping table.voidsetVersion(Long version) Sets the version of the mapping table.Methods inherited from class com.highdeal.mappingtable.hci.CommonMappingTableModel
addCharacterData, addChild, getAdditionalInfoList, getClass, getDescription, getId, getMappingTableClassId, getRows, marshal, marshalChildren, setDescription, setId, setMappingTableClassId
-
Field Details
-
TAG_NAME
The XML tag name of this data model: "mappingTable"- See Also:
-
-
Constructor Details
-
MappingTableModel
public MappingTableModel()
-
-
Method Details
-
getOwner
Gets the owner of the mapping table; The owner of the mapping table and mapping table class used have the same owner.- Specified by:
getOwnerin interfaceICatalogObject- Returns:
- A string that contains the owner of the mapping table
-
setOwner
Sets the owner of the mapping table. The owner of the mapping table and mapping table class used have the same owner.- Parameters:
owner- The owner to set to the mapping table
-
getAgreementId
Gets the agreement identifier of the mapping table;- Returns:
- A string that contains the agreement identifier of the mapping table
-
setAgreementId
Sets the agreement identifier of the mapping table;- Parameters:
id- The agreement identifier to set up to the mapping table
-
getVersion
Gets the version of the mapping table. It is incremented by one each time the mapping table is modified.- Returns:
- the version of the mapping table
-
setVersion
Sets the version of the mapping table.- Parameters:
version- the version of the mapping table
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Overrides:
setAttributesin classCommonMappingTableModel- Parameters:
atts- TheXML attributesof the current element
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Specified by:
marshalAttributesin interfaceIXMLMarshallable- Overrides:
marshalAttributesin classCommonMappingTableModel- Parameters:
output- TheXML outputto marshal the object attributes into
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Specified by:
getTagNamein interfaceITagNameProvider- Returns:
- The XML tag name
-