Package com.highdeal.pnr.hci
Class InternalChargeActionModel
java.lang.Object
com.highdeal.pnr.hci.RateComponentModel
com.highdeal.pnr.hci.DefaultChargeActionModel
com.highdeal.pnr.hci.InternalChargeActionModel
- All Implemented Interfaces:
XMLMarshallable,ContextualNode
This class represents the action of charging on an internal charging reference following a charging mode.
This model is a rate RateComponentModel containing four properties:
- name="internalChargingReference" type="string" value="<the string value of the internal charging reference>"
- name="chargingMode" type="string" value="<
ChargingMode, the default one isChargingMode.forceNothing>" - name="allowFreeChargeUpTo" type="string" value="<
AccountState, the default one isAccountState.CLOSED>" - name="allowNotFreeChargeUpTo" type="string" value="<
AccountState, the default one isAccountState.ACTIVE>"
- Since:
- Transactive 4.0
-
Field Summary
Fields inherited from class com.highdeal.pnr.hci.DefaultChargeActionModel
DEFAULT_FREE_CHARGE_UP_TO, DEFAULT_NOT_FREE_CHARGE_UP_TO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the component is valid.Returns the internal charging reference.intGets the maximum child count.voidinternalAddChild(String name, XMLMarshallable child) voidinternalMarshal(XMLOutputter output) voidsetInternalChargingReference(String internalChargingReference) Sets the internal charging reference.Methods inherited from class com.highdeal.pnr.hci.DefaultChargeActionModel
addChild, getAllowFreeChargeUpTo, getAllowNotFreeChargeUpTo, getChargingMode, getPropertyReferences, marshal, setAllowFreeChargeUpTo, setAllowNotFreeChargeUpTo, setChargingModeMethods 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
-
InternalChargeActionModel
public InternalChargeActionModel()
-
-
Method Details
-
getInternalChargingReference
Returns the internal charging reference.- Returns:
- the internal charging reference.
-
setInternalChargingReference
Sets the internal charging reference.- Parameters:
internalChargingReference- the internal charging reference to set.
-
getMaxChildCount
public int getMaxChildCount()Description copied from class:RateComponentModelGets the maximum child count.- Overrides:
getMaxChildCountin classDefaultChargeActionModel- Returns:
- the maximum child count.
-
checkValidity
public boolean checkValidity()Description copied from class:RateComponentModelReturns true if the component is valid.- Overrides:
checkValidityin classDefaultChargeActionModel- Returns:
- true if the component is valid, false otherwise.
-
internalAddChild
- Overrides:
internalAddChildin classDefaultChargeActionModel
-
internalMarshal
- Overrides:
internalMarshalin classDefaultChargeActionModel
-