com.highdeal.pnr.hci
Class ChargeModel

java.lang.Object
  extended by com.highdeal.pnr.hci.RateComponentModel
      extended by com.highdeal.pnr.hci.ChargeModel
All Implemented Interfaces:
XMLMarshallable, ContextualNode
Direct Known Subclasses:
DefaultChargeModel, OneShotChargeModel, RecurringChargeModel, UsageChargeModel

public abstract class ChargeModel
extends RateComponentModel

This class is the root class for the different charging classes.


Field Summary
 
Fields inherited from class com.highdeal.pnr.hci.RateComponentModel
children, description, name, parent
 
Constructor Summary
ChargeModel()
           
 
Method Summary
 boolean checkValidity()
          Returns true if the component is valid.
 int getMaxChildCount()
          Gets the maximum child count.
 RateComponentModel getRateComponent()
          Gets the contained rate component.
 void setRateComponent(RateComponentModel rateComponent)
          Sets the contained rate component.
 
Methods inherited from class com.highdeal.pnr.hci.RateComponentModel
addCharacterData, addChild, getChildAt, getChildCount, getChildren, getContext, getDescription, getName, getParent, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, marshal, marshallChildren, remove, removeChild, setAttributes, setChild, setChild, setChildren, setDescription, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChargeModel

public ChargeModel()
Method Detail

getRateComponent

public RateComponentModel getRateComponent()
Gets the contained rate component.

Returns:
the contained rate component.

setRateComponent

public void setRateComponent(RateComponentModel rateComponent)
Sets the contained rate component.

Parameters:
rateComponent - the contained rate component.

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.

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)