Package com.highdeal.pnr.hci
Class ExternalChargeActionModel
java.lang.Object
com.highdeal.pnr.hci.RateComponentModel
com.highdeal.pnr.hci.ExternalChargeActionModel
- All Implemented Interfaces:
XMLMarshallable,ContextualNode
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>"
- name="externalChargingReferenceName" type="string" value="<the name of the contextual property containing the external charging reference>"
or
- name="debtorId" type="string" value="<the string value of the debtorId>"
- name="debtorIdName" type="string" value="<the name of the contextual property containing the debtorId>"
or
- name="creditorId" type="string" value="<the string value of the creditorId>"
- name="creditorIdName" type="string" value="<the name of the contextual property containing the creditorId>"
or
- Since:
- Transactive 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(String name, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.booleanReturns true if the component is valid.Return the creditorId.Return the name of the contextual property containing the creditorId.Return the debtorIdReturn the name of the contextual property containing debtorId.Return the external charging reference.Return the name of the contextual property containing the external charging reference.intGets the maximum child count.List<com.highdeal.pnr.hci.PropertyReference>Returns the list of the properties that are used in this component.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetCreditorId(String creditorId) Sets the creditorId.voidsetCreditorIdName(String creditorIdName) Sets the name of the contextual property containing the creditorId.voidsetDebtorId(String debtorId) Set the debtorId.voidsetDebtorIdName(String debtorIdName) Sets the name of the contextual property containing the debtorId.voidsetExternalChargingReference(String externalChargingReference) Sets the external charging reference.voidsetExternalChargingReferenceName(String externalChargingReferenceName) Sets the name of the contextual property containing the external charging reference.Methods inherited from class com.highdeal.pnr.hci.RateComponentModel
addCharacterData, findRootRateModel, getChildAt, getChildCount, getChildren, getContext, getDescription, getName, getParent, getPropertyNames, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, remove, removeChild, setAttributes, setChild, setChildren, setDescription, setName, setParent
-
Constructor Details
-
ExternalChargeActionModel
public ExternalChargeActionModel()
-
-
Method Details
-
getDebtorId
Return the debtorId- Returns:
- the debtorId.
-
setDebtorId
Set the debtorId.- Parameters:
debtorId- the debtorId to set.
-
getDebtorIdName
Return the name of the contextual property containing debtorId.- Returns:
- the name of the contextual property containing debtorId.
-
setDebtorIdName
Sets the name of the contextual property containing the debtorId.- Parameters:
debtorIdName- the name of the contextual property containing the debtorId.
-
getCreditorId
Return the creditorId.- Returns:
- the creditorId.
-
setCreditorId
Sets the creditorId.- Parameters:
creditorId- the creditorId to set.
-
getCreditorIdName
Return the name of the contextual property containing the creditorId.- Returns:
- the name of the contextual property containing the creditorId.
-
setCreditorIdName
Sets the name of the contextual property containing the creditorId.- Parameters:
creditorIdName- the name of the contextual property containing the creditorId.
-
getExternalChargingReference
Return the external charging reference.- Returns:
- the external charging reference.
-
setExternalChargingReference
Sets the external charging reference.- Parameters:
externalChargingReference- the external charging reference.
-
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
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:RateComponentModelGets the maximum child count.- Specified by:
getMaxChildCountin classRateComponentModel- Returns:
- the maximum child count.
-
checkValidity
public boolean checkValidity()Description copied from class:RateComponentModelReturns true if the component is valid.- Specified by:
checkValidityin classRateComponentModel- Returns:
- true if the component is valid, false otherwise.
-
getPropertyReferences
Description copied from class:RateComponentModelReturns the list of the properties that are used in this component.- Specified by:
getPropertyReferencesin classRateComponentModel- Returns:
- the list of the properties that are used in this component
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Overrides:
addChildin classRateComponentModel- Parameters:
name- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Overrides:
marshalin classRateComponentModel- Parameters:
output- TheXML outputto marshal the object into
-