Class SubsReflectDetail

java.lang.Object
com.highdeal.pnr.tif.SubsReflectDetail
All Implemented Interfaces:
XMLMarshallable

public class SubsReflectDetail extends Object implements XMLMarshallable
This class is used to give more details about the subscription reflect.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="subsReflectdetail">
   <xs:complexType>
    <xs:attribute name="name" type="xs:string"/>
    <xs:attribute name="type" type="SubsReflectDetailType"/>
    <xs:attribute name="value" type="xs:string"/>
    <xs:attribute name="caCode" type="xs:string"/>
    <xs:attribute name="caOid" type="xs:string"/>
   </xs:complexType>
  </xs:element>
<xs:simpleType name="SubsReflectDetailType">
   <xs:restriction base="xs:string">
      <xs:enumeration value="decimal"/>
      <xs:enumeration value="string"/>
      <xs:enumeration value="date"/>
      <xs:enumeration value="access"/>
   </xs:restriction>
 </xs:simpleType>

  • Field Details

  • Constructor Details

    • SubsReflectDetail

      public SubsReflectDetail()
      Constructs an empty subscription reflect detail.
    • SubsReflectDetail

      public SubsReflectDetail(String name, int type, Object value, String caCode, Long caOid)
      Builds a complete SubsReflectDetail.
      Parameters:
      name - the detail name.
      type - the type of the detail
      value - the detail value
      caCode - the charge activation code which owns the detail
      caOid - the charge activation id which owns the detail
    • SubsReflectDetail

      public SubsReflectDetail(String name, Object value, String caCode, Long caOid)
      Builds a complete SubsReflectDetail without type. The detail type is determined by the instance type of value.
      Parameters:
      name - the detail name.
      value - the detail value
      caCode - the charge activation code which owns the detail
      caOid - the charge activation id which owns the detail
  • Method Details

    • getName

      public String getName()
      Returns the name of the detail.
      Returns:
      the name of the detail.
    • setCaCode

      public void setCaCode(String chargeCode)
      Sets the charge activation code.
      Parameters:
      chargeCode - the charge activation code of the detail.
    • getCaCode

      public String getCaCode()
      Returns the charge activation code of the detail.
      Returns:
      the charge activation code of the detail.
    • getCaOid

      public Long getCaOid()
      Returns the charge activation id of the detail.
      Returns:
      the charge activation id of the detail.
    • setCaOid

      public void setCaOid(Long caOid)
      Sets the charge activation id.
      Parameters:
      caOid - the charge activation id.
    • getValue

      public Object getValue()
      Returns the value of the detail.
      Returns:
      the value of the detail.
    • getStringValue

      public String getStringValue()
      Returns the value of the detail. The result is null if the detail value is not a string.
      Returns:
      the value of the detail.
    • setValue

      public void setValue(Object value)
      Sets the value and its type.
      Parameters:
      value - the Object value.
    • getDateValue

      public Date getDateValue()
      Returns the value of the detail. The result is null if the detail value is not a date.
      Returns:
      the value of the detail.
    • getDecimalValue

      public BigDecimal getDecimalValue()
      Returns the value of the detail. The result is null if the detail value is not a decimal.
      Returns:
      the value of the detail.
    • getType

      public int getType()
      Returns the type of the detail. The type can be : NUMBER - STRING - DATE - ACCESS
      Returns:
      the type of the detail.
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      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
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Specified by:
      addCharacterData in interface XMLMarshallable
      Parameters:
      cData - The character data to be added
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      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)
      Description copied from interface: XMLMarshallable
      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