Class 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.
  • Constructor Details

    • ChargeModel

      public ChargeModel()
  • Method Details

    • 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.
    • 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