public class PrepaidTransactionFieldMappingModel extends java.lang.Object implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="fieldMapping">
<xs:complexType>
<xs:attribute name="transactionField" type="PrepaidTransactionFieldType" use="required"/>
<xs:attribute name="propertyName" type="xs:string" use="optional"/>
<xs:attribute name="value" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
PrepaidTransactionFieldMappingModel()
Builds a new prepaid transaction detail mapping.
|
PrepaidTransactionFieldMappingModel(PrepaidTransactionField transactionField,
java.lang.String propertyName,
java.lang.String stringValue,
java.math.BigDecimal numberValue,
java.util.Date dateValue)
Builds a full prepaid transaction detail mapping.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String data)
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.Date |
getDateValue()
Returns the constant value that is mapped if it is a date.
|
java.math.BigDecimal |
getNumberValue()
Returns the constant value that is mapped if it is a number.
|
java.lang.String |
getPropertyName()
Gets the property name of the rating context that is mapped.
|
java.lang.String |
getStringValue()
Returns the constant value that is mapped if it is a string.
|
PrepaidTransactionField |
getTransactionField()
Gets the transaction field of the prepaid transaction that is mapped.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDateValue(java.util.Date date)
Sets the constant value that is mapped if it is a date.
|
void |
setNumberValue(java.math.BigDecimal number)
Sets the constant value that is mapped if it is a number.
|
void |
setPropertyName(java.lang.String propertyName)
Sets the property name of the rating context that is mapped.
|
void |
setStringValue(java.lang.String string)
Sets the constant value that is mapped if it is a string.
|
void |
setTransactionField(PrepaidTransactionField field)
Sets the transaction field of the prepaid transaction that is mapped.
|
public PrepaidTransactionFieldMappingModel()
public PrepaidTransactionFieldMappingModel(PrepaidTransactionField transactionField, java.lang.String propertyName, java.lang.String stringValue, java.math.BigDecimal numberValue, java.util.Date dateValue)
transactionField - propertyName - stringValue - numberValue - dateValue - public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
propertyName - the name of the property to map.public PrepaidTransactionField getTransactionField()
public void setTransactionField(PrepaidTransactionField field)
field - the transaction field of the prepaid transaction that is mapped.public java.lang.String getStringValue()
public void setStringValue(java.lang.String string)
string - the constant value that is mapped if it is a string.public java.math.BigDecimal getNumberValue()
public void setNumberValue(java.math.BigDecimal number)
number - the constant value that is mapped if it is a number.public java.util.Date getDateValue()
public void setDateValue(java.util.Date date)
date - the constant value that is mapped if it is a date.public void addCharacterData(java.lang.String data)
addCharacterData in interface XMLMarshallabledata - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
child 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 marshal(XMLOutputter output)
marshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic void setAttributes(XMLAttributes atts)
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element