Class MappingTableModel

java.lang.Object
com.highdeal.mappingtable.hci.CommonMappingTableModel
com.highdeal.mappingtable.hci.MappingTableModel
All Implemented Interfaces:
ITagNameProvider, IXMLMarshallable, XMLMapping, XMLMarshallable, ICatalogObject

public class MappingTableModel extends CommonMappingTableModel implements 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

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 Details

  • Constructor Details

    • MappingTableModel

      public MappingTableModel()
  • Method Details

    • getOwner

      public String 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:
      getOwner in interface ICatalogObject
      Returns:
      A string that contains the owner of the mapping table
    • setOwner

      public void setOwner(String owner)
      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

      public String getAgreementId()
      Gets the agreement identifier of the mapping table;
      Returns:
      A string that contains the agreement identifier of the mapping table
    • setAgreementId

      public void setAgreementId(String id)
      Sets the agreement identifier of the mapping table;
      Parameters:
      id - The agreement identifier to set up to the mapping table
    • getVersion

      public Long 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

      public void setVersion(Long version)
      Sets the version of the mapping table.
      Parameters:
      version - the version of the mapping table
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Specified by:
      setAttributes in interface XMLMarshallable
      Overrides:
      setAttributes in class CommonMappingTableModel
      Parameters:
      atts - The XML attributes of the current element
    • marshalAttributes

      public void marshalAttributes(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the attributes of an object.
      Specified by:
      marshalAttributes in interface IXMLMarshallable
      Overrides:
      marshalAttributes in class CommonMappingTableModel
      Parameters:
      output - The XML output to marshal the object attributes into
    • getTagName

      public String getTagName()
      Description copied from interface: ITagNameProvider
      Gets the XML tag name of the HCI model.
      Specified by:
      getTagName in interface ITagNameProvider
      Returns:
      The XML tag name