Class PreTierTableComponentModel

java.lang.Object
com.highdeal.pnr.hci.RateComponentModel
com.highdeal.pnr.hci.PreTierTableComponentModel
All Implemented Interfaces:
XMLMarshallable, ContextualNode

public class PreTierTableComponentModel extends RateComponentModel implements ContextualNode
This class represents a rate component which executes a tier table.
  • Field Details

  • Constructor Details

    • PreTierTableComponentModel

      public PreTierTableComponentModel()
      Builds an empty PreTierTableComponentModel.
  • Method Details

    • setTable

      public void setTable(TierTableModel t)
      Sets the tier table.
      Parameters:
      t - the tier table.
    • getTable

      public TierTableModel getTable()
      Gets the tier table.
      Returns:
      the tier table.
    • getTableCode

      public String getTableCode()
      Gets the code of the tier table used in this component.
      Returns:
      the code of the tier table used in this component.
    • setTableCode

      public void setTableCode(String c)
      Sets the code of the tier table used in this component.
      Parameters:
      c - the code of the tier table used in this component.
    • setInPropertyName

      public void setInPropertyName(String p)
      Sets the input property name.
      Parameters:
      p - a string containing the input property name.
    • getInPropertyName

      public String getInPropertyName()
      Gets the input property name.
      Returns:
      a string containing the input property name.
    • setGroupPropertyName

      public void setGroupPropertyName(String p)
      Sets the property name that contains the name of group to use.
      Parameters:
      p - a string containing the property name that contains the name of group.
    • getGroupPropertyName

      public String getGroupPropertyName()
      Gets the property name that contains the name of group.
      Returns:
      a string containing the property name that contains the name of group.
    • setOutMapping

      public void setOutMapping(Vector<String> m)
      Sets the output mapping.
      Parameters:
      m - a Vector of String containing the output property names.
    • getOutMapping

      public Vector<String> getOutMapping()
      Gets the out mapping.
      Returns:
      a Vector of String containing the output property names.
    • getMaxChildCount

      public int getMaxChildCount()
      Gets the maximum child count (1). Only one child is allowed for this component.
      Specified by:
      getMaxChildCount in class RateComponentModel
      Returns:
      the maximum child count.
    • checkValidity

      public boolean checkValidity()
      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
    • getContext

      public RatingContextDescription getContext(ContextualNode child)
      Description copied from interface: ContextualNode
      Gets the context description for the specified child; The context description contains all the context properties.
      Specified by:
      getContext in interface ContextualNode
      Overrides:
      getContext in class RateComponentModel
      Parameters:
      child - The child node
      Returns:
      The context description
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Specified by:
      addChild in interface XMLMarshallable
      Overrides:
      addChild in class RateComponentModel
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Specified by:
      addCharacterData in interface XMLMarshallable
      Overrides:
      addCharacterData in class RateComponentModel
      Parameters:
      cData - The character data to be added
    • marshal

      public void marshal(XMLOutputter output)
      Description copied from interface: XMLMarshallable
      Gives an XML representation of this object, including its children.
      Specified by:
      marshal in interface XMLMarshallable
      Overrides:
      marshal in class RateComponentModel
      Parameters:
      output - The XML output to marshal the object into