Class PreTableComponentModel

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

public class PreTableComponentModel extends RateComponentModel
This class represents a rate component which executes a translation table.
  • Constructor Details

    • PreTableComponentModel

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

    • setTable

      public void setTable(TranslationTableModel t)
      Sets the translation table.
      Parameters:
      t - the translation table.
    • getTable

      public TranslationTableModel getTable()
      Gets the translation table.
      Returns:
      the translation table.
    • getTableCode

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

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

      public void setInMapping(Vector<String> m)
      Sets the in mapping.
      Parameters:
      m - a Vector of String containing the in property names.
    • getInMapping

      public Vector<String> getInMapping()
      Gets the in mapping.
      Returns:
      a Vector of String containing the in property names.
    • setOutMapping

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

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

      public void setReferenceDate(String refDate)
      Sets the reference date.
      Parameters:
      refDate - a String of String containing the in property names.
    • getReferenceDate

      public String getReferenceDate()
      Gets the reference date.
      Returns:
      the property name of the reference date.
    • setOperator

      public void setOperator(int o)
      Sets the operator. Allowed operators are : See TranslationTableModel for complete operators list.
      Parameters:
      o - the operator.
    • getOperator

      public int getOperator()
      Gets the operator. See setOperator for returned values.
      Returns:
      the operator.
    • 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