com.highdeal.pnr.hci
Class PrepaidTransactionFieldMappingModel

java.lang.Object
  extended by com.highdeal.pnr.hci.PrepaidTransactionFieldMappingModel
All Implemented Interfaces:
XMLMarshallable

public class PrepaidTransactionFieldMappingModel
extends java.lang.Object
implements XMLMarshallable

This class represents how a detail of a prepaid transaction can be mapped to a constant, or to a property of the rating context.

XML API for HCI

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 Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrepaidTransactionFieldMappingModel

public PrepaidTransactionFieldMappingModel()
Builds a new prepaid transaction detail mapping.


PrepaidTransactionFieldMappingModel

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

Parameters:
transactionField -
propertyName -
stringValue -
numberValue -
dateValue -
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Gets the property name of the rating context that is mapped.

Returns:
the mapped property name

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Sets the property name of the rating context that is mapped.

Parameters:
propertyName - the name of the property to map.

getTransactionField

public PrepaidTransactionField getTransactionField()
Gets the transaction field of the prepaid transaction that is mapped.

Returns:
the transaction field of the prepaid transaction that is mapped.

setTransactionField

public void setTransactionField(PrepaidTransactionField field)
Sets the transaction field of the prepaid transaction that is mapped.

Parameters:
field - the transaction field of the prepaid transaction that is mapped.

getStringValue

public java.lang.String getStringValue()
Returns the constant value that is mapped if it is a string.

Returns:
the constant value that is mapped if it is a string.

setStringValue

public void setStringValue(java.lang.String string)
Sets the constant value that is mapped if it is a string.

Parameters:
string - the constant value that is mapped if it is a string.

getNumberValue

public java.math.BigDecimal getNumberValue()
Returns the constant value that is mapped if it is a number.

Returns:
the constant value that is mapped if it is a number.

setNumberValue

public void setNumberValue(java.math.BigDecimal number)
Sets the constant value that is mapped if it is a number.

Parameters:
number - the constant value that is mapped if it is a number.

getDateValue

public java.util.Date getDateValue()
Returns the constant value that is mapped if it is a date.

Returns:
the constant value that is mapped if it is a date.

setDateValue

public void setDateValue(java.util.Date date)
Sets the constant value that is mapped if it is a date.

Parameters:
date - the constant value that is mapped if it is a date.

addCharacterData

public void addCharacterData(java.lang.String data)
Adds character data to the content element.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
data - The character data to be added

addChild

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

Specified by:
addChild in interface XMLMarshallable
Parameters:
tagName - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - The XML output to marshal the object into

setAttributes

public void setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - The XML attributes of the current element

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)