Class ExternalChargeActionModel

java.lang.Object
com.highdeal.pnr.hci.RateComponentModel
com.highdeal.pnr.hci.ExternalChargeActionModel
All Implemented Interfaces:
XMLMarshallable, ContextualNode

public class ExternalChargeActionModel extends RateComponentModel
This class represents the action of charging on an external charging reference.


This model is a rate RateComponentModel containing two properties:

  • name="externalChargingReference" type="string" value="<the string value of the external charging reference>"

  • or
  • name="externalChargingReferenceName" type="string" value="<the name of the contextual property containing the external charging reference>"
  • name="debtorId" type="string" value="<the string value of the debtorId>"

  • or
  • name="debtorIdName" type="string" value="<the name of the contextual property containing the debtorId>"
  • name="creditorId" type="string" value="<the string value of the creditorId>"

  • or
  • name="creditorIdName" type="string" value="<the name of the contextual property containing the creditorId>"
Since:
Transactive 4.0
  • Constructor Details

    • ExternalChargeActionModel

      public ExternalChargeActionModel()
  • Method Details

    • getDebtorId

      public String getDebtorId()
      Return the debtorId
      Returns:
      the debtorId.
    • setDebtorId

      public void setDebtorId(String debtorId)
      Set the debtorId.
      Parameters:
      debtorId - the debtorId to set.
    • getDebtorIdName

      public String getDebtorIdName()
      Return the name of the contextual property containing debtorId.
      Returns:
      the name of the contextual property containing debtorId.
    • setDebtorIdName

      public void setDebtorIdName(String debtorIdName)
      Sets the name of the contextual property containing the debtorId.
      Parameters:
      debtorIdName - the name of the contextual property containing the debtorId.
    • getCreditorId

      public String getCreditorId()
      Return the creditorId.
      Returns:
      the creditorId.
    • setCreditorId

      public void setCreditorId(String creditorId)
      Sets the creditorId.
      Parameters:
      creditorId - the creditorId to set.
    • getCreditorIdName

      public String getCreditorIdName()
      Return the name of the contextual property containing the creditorId.
      Returns:
      the name of the contextual property containing the creditorId.
    • setCreditorIdName

      public void setCreditorIdName(String creditorIdName)
      Sets the name of the contextual property containing the creditorId.
      Parameters:
      creditorIdName - the name of the contextual property containing the creditorId.
    • getExternalChargingReference

      public String getExternalChargingReference()
      Return the external charging reference.
      Returns:
      the external charging reference.
    • setExternalChargingReference

      public void setExternalChargingReference(String externalChargingReference)
      Sets the external charging reference.
      Parameters:
      externalChargingReference - the external charging reference.
    • getExternalChargingReferenceName

      public String getExternalChargingReferenceName()
      Return the name of the contextual property containing the external charging reference.
      Returns:
      the name of the contextual property containing the external charging reference.
    • setExternalChargingReferenceName

      public void setExternalChargingReferenceName(String externalChargingReferenceName)
      Sets the name of the contextual property containing the external charging reference.
      Parameters:
      externalChargingReferenceName - the name of the contextual property containing the external charging reference.
    • getMaxChildCount

      public int getMaxChildCount()
      Description copied from class: RateComponentModel
      Gets the maximum child count.
      Specified by:
      getMaxChildCount in class RateComponentModel
      Returns:
      the maximum child count.
    • checkValidity

      public boolean checkValidity()
      Description copied from class: RateComponentModel
      Returns true if the component is valid.
      Specified by:
      checkValidity in class RateComponentModel
      Returns:
      true if the component is valid, false otherwise.
    • getPropertyReferences

      public List<com.highdeal.pnr.hci.PropertyReference> getPropertyReferences()
      Description copied from class: RateComponentModel
      Returns the list of the properties that are used in this component.
      Specified by:
      getPropertyReferences in class RateComponentModel
      Returns:
      the list of the properties that are used in this component
    • addChild

      public void addChild(String name, 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
      Overrides:
      addChild in class RateComponentModel
      Parameters:
      name - 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
      Overrides:
      marshal in class RateComponentModel
      Parameters:
      output - The XML output to marshal the object into