Package com.highdeal.pnr.hci
Class ChargeModel
java.lang.Object
com.highdeal.pnr.hci.RateComponentModel
com.highdeal.pnr.hci.ChargeModel
- All Implemented Interfaces:
XMLMarshallable,ContextualNode
- Direct Known Subclasses:
DefaultChargeModel,OneShotChargeModel,RecurringChargeModel,UsageChargeModel
This class is the root class for the different
charging classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the component is valid.intGets the maximum child count.List<com.highdeal.pnr.hci.PropertyReference>Returns the list of the properties that are used in this component.Gets the contained rate component.voidsetRateComponent(RateComponentModel rateComponent) Sets the contained rate component.Methods inherited from class com.highdeal.pnr.hci.RateComponentModel
addCharacterData, addChild, findRootRateModel, getChildAt, getChildCount, getChildren, getContext, getDescription, getName, getParent, getPropertyNames, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, marshal, remove, removeChild, setAttributes, setChild, setChildren, setDescription, setName, setParent
-
Constructor Details
-
ChargeModel
public ChargeModel()
-
-
Method Details
-
getRateComponent
Gets the contained rate component.- Returns:
- the contained rate component.
-
setRateComponent
Sets the contained rate component.- Parameters:
rateComponent- the contained rate component.
-
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
-