public class MappingTableClassModel extends HCIModelAdapter implements XMLMapping, ICatalogObject
Java class represents a mapping table class that defines the
scheme of mapping tables and subscriber mapping tables in master data.
It defines the structure of a mapping table with the number and the type of input and output columns.
This class is referenced by the MappingTableModel and SubscriberMappingTableModel objects.
A mapping table class supports up to 20 input columns and 30 output columns. In a mapping table, the input columns contains the values that are used as hash keys for finding the corresponding row that contains the list of output values to return. Thus, at least one input and one output column are required in a mapping table class.
Implementation Note
This SAP product documentation describes the technical vision of the functional or business concepts (and objects).
Refer to the SAP CC Application Help for more information about the functional concept:
MappingTableModel,
SubscriberMappingTableModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="mappingTableClass">
<xs:complexType>
<xs:sequence>
<xs:element name="additionalInfo" type="AdditionalInfoType" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="inColumn" maxOccurs="20"/>
<xs:element ref="outColumn" maxOccurs="30"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" />
<xs:attribute name="description" type="xs:string" />
<xs:attribute name="owner" type="xs:string" />
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_IN_COLUMN
The maximum number of input columns: 20
|
static int |
MAX_OUT_COLUMN
The maximum number of output columns: 30
|
static java.lang.String |
TAG_NAME
The XML tag name of this data model: "mappingTableClass"
|
| Constructor and Description |
|---|
MappingTableClassModel()
Default mapping table class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.util.List<AdditionalInfoModel> |
getAdditionalInfoList()
Gets the list of information dedicated to external system.
|
java.lang.Class<?> |
getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
Returns the
Java class for a specified XML tag and its attributes in a namespace. |
java.lang.String |
getDescription()
Gets the comprehensive description of the mapping table class.
|
java.lang.String |
getId()
Gets the mapping table
identifier. |
java.util.List<MappingTableClassInColumnModel> |
getInColumns()
Gets the definition of the input columns of the mapping table class.
|
java.util.List<MappingTableClassOutColumnModel> |
getOutColumns()
Gets the definition of the output columns of the mapping table class.
|
java.lang.String |
getOwner()
Gets the
owner of the mapping table class. |
java.lang.String |
getTagName()
Gets the XML tag of this HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDescription(java.lang.String description)
Sets the comprehensive description of the mapping table class.
|
void |
setId(java.lang.String id)
Sets the
identifier of the mapping table class. |
void |
setOwner(java.lang.String owner)
Sets the
owner of the mapping table class. |
marshalpublic static final int MAX_IN_COLUMN
public static final int MAX_OUT_COLUMN
public static final java.lang.String TAG_NAME
public MappingTableClassModel()
public java.lang.String getId()
identifier.identifier of the mapping table classpublic void setId(java.lang.String id)
identifier of the mapping table class.id - The identifier to set to this mapping table classpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description to set to this mapping table classpublic java.lang.String getOwner()
owner of the mapping table class.getOwner in interface ICatalogObjectowner of the mapping table classpublic void setOwner(java.lang.String owner)
owner of the mapping table class.owner - The owner to set to this mapping table classpublic java.util.List<MappingTableClassInColumnModel> getInColumns()
public java.util.List<MappingTableClassOutColumnModel> getOutColumns()
public java.util.List<AdditionalInfoModel> getAdditionalInfoList()
search its specifics mapping table.
An additional information is a property defined by its name and its value.public java.lang.String getTagName()
getTagName in interface ITagNameProviderpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.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 setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallablemarshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallablemarshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects intopublic java.lang.Class<?> getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
XMLMappingJava class for a specified XML tag and its attributes in a namespace.getClass in interface XMLMappingnsUri - The unique resource identifier of the namespace of the XML tagtag - The local part of the XML tagatts - The attributes of the XML tagJava class with a default constructor