Class PrepaidTransactionFieldMappingModel

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

public class PrepaidTransactionFieldMappingModel extends 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 Details

    • PrepaidTransactionFieldMappingModel

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

      public PrepaidTransactionFieldMappingModel(PrepaidTransactionField transactionField, String propertyName, String stringValue, BigDecimal numberValue, Date dateValue)
      Builds a full prepaid transaction detail mapping.
      Parameters:
      transactionField -
      propertyName -
      stringValue -
      numberValue -
      dateValue -
  • Method Details

    • getPropertyName

      public String getPropertyName()
      Gets the property name of the rating context that is mapped.
      Returns:
      the mapped property name
    • setPropertyName

      public void setPropertyName(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 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(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 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(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 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(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(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(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