public class MappingTableRowModel extends HCIModelAdapter implements XMLMapping, com.highdeal.filter.domain.ISearchableObject
Java class represents a row in a mapping table
(or in a subscriber mapping table); This row is identified by a unique key and is defined for a certain period of time.
Note
A row includes two sets of data values:
mapping table classIts validity period is defined with the start and end dates.
Important Note
You can manage different versions of a row in a table.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="MappingTableRow">
<xs:sequence>
<xs:element name="column" type="MappingTableColumn" minOccurs="0" maxOccurs="unbounded" /> <!-- input/output data values in the row -->
</xs:sequence>
<xs:attribute name="id" type="xs:string" /> <!-- identifier of a row -->
<xs:attribute name="version" type="xs:long" use="optional" />
<xs:attribute name="start" type="xs:dateTime" />
<xs:attribute name="end" type="xs:dateTime" />
</xs:complexType>
<xs:element name="mappingTableRow" type="MappingTableRow"/>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this data model: mappingTableRow
|
| Constructor and Description |
|---|
MappingTableRowModel()
Default
MappingTableRow model. |
| 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. |
XMLMarshallable |
export() |
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.util.List<MappingTableColumnModel> |
getColumns()
Gets all the
columns contained in the row. |
java.util.Date |
getEndDate()
Gets the end date of the row.
|
java.lang.String |
getId()
Gets the identifier of the row.
|
java.lang.String |
getOid() |
java.util.Date |
getStartDate()
Gets the start date of the row.
|
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model.
|
java.lang.Object |
getValue(AttributeDescriptionModel field) |
java.lang.Long |
getVersion()
Gets the version of the mapping table row.
|
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 |
setEndDate(java.util.Date endDate)
Sets the end date of the row.
|
void |
setId(java.lang.String id)
Sets the identifier of the row.
|
void |
setStartDate(java.util.Date startDate)
Sets the start date of the row.
|
void |
setVersion(java.lang.Long version)
Sets the version of the mapping table row.
|
marshalpublic static final java.lang.String TAG_NAME
public MappingTableRowModel()
MappingTableRow model.public java.lang.String getId()
String that contains the identifier of the rowpublic void setId(java.lang.String id)
id - The identifier of the rowpublic java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate - The date from when the row beginpublic java.util.Date getEndDate()
Date that indicate when the row finishpublic void setEndDate(java.util.Date endDate)
endDate - The date when the row is finishedpublic java.lang.Long getVersion()
public void setVersion(java.lang.Long version)
version - the version of the mapping table rowpublic java.util.List<MappingTableColumnModel> getColumns()
columns contained in the row.public java.lang.String getTagName()
ITagNameProvidergetTagName in interface ITagNameProviderpublic 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 addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data 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 constructorpublic java.lang.Object getValue(AttributeDescriptionModel field)
getValue in interface com.highdeal.filter.domain.ISearchableObjectpublic java.lang.String getOid()
getOid in interface com.highdeal.filter.domain.ISearchableObjectpublic XMLMarshallable export()
export in interface com.highdeal.filter.domain.ISearchableObject