com.highdeal.pnr.hci
Class PreTableComponentModel

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

public class PreTableComponentModel
extends RateComponentModel
implements ContextualNode

This class represents a rate component which executes a translation table.


Field Summary
 
Fields inherited from class com.highdeal.pnr.hci.RateComponentModel
children, description, name, parent
 
Constructor Summary
PreTableComponentModel()
          Builds an empty PreTableComponentModel.
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.String tagName, XMLMarshallable child)
          Adds a child to the object, the child representing the marshallable object which must be added to the element.
 boolean checkValidity()
          Returns true if the component is valid.
 RatingContextDescription getContext(ContextualNode child)
          Gets the context description for the specified child; The context description contains all the context properties.
 java.util.Vector<java.lang.String> getInMapping()
          Gets the in mapping.
 int getMaxChildCount()
          Gets the maximum child count (1).
 int getOperator()
          Gets the operator.
 java.util.Vector<java.lang.String> getOutMapping()
          Gets the out mapping.
 java.lang.String getReferenceDate()
          Gets the reference date.
 TranslationTableModel getTable()
          Gets the translation table.
 java.lang.String getTableCode()
          Gets the code of the translation table used in this component.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setInMapping(java.util.Vector<java.lang.String> m)
          Sets the in mapping.
 void setOperator(int o)
          Sets the operator.
 void setOutMapping(java.util.Vector<java.lang.String> m)
          Sets the out mapping.
 void setReferenceDate(java.lang.String refDate)
          Sets the reference date.
 void setTable(TranslationTableModel t)
          Sets the translation table.
 void setTableCode(java.lang.String c)
          Sets the code of the translation table used in this component.
 
Methods inherited from class com.highdeal.pnr.hci.RateComponentModel
getChildAt, getChildCount, getChildren, getDescription, getName, getParent, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, 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
 
Methods inherited from interface com.highdeal.pnr.hci.ContextualNode
inheritedContext, setParent
 

Constructor Detail

PreTableComponentModel

public PreTableComponentModel()
Builds an empty PreTableComponentModel.

Method Detail

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 java.lang.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(java.lang.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(java.util.Vector<java.lang.String> m)
Sets the in mapping.

Parameters:
m - a Vector of String containing the in property names.

getInMapping

public java.util.Vector<java.lang.String> getInMapping()
Gets the in mapping.

Returns:
a Vector of String containing the in property names.

setOutMapping

public void setOutMapping(java.util.Vector<java.lang.String> m)
Sets the out mapping.

Parameters:
m - a Vector of String containing the out property names.

getOutMapping

public java.util.Vector<java.lang.String> getOutMapping()
Gets the out mapping.

Returns:
a Vector of String containing the out property names.

setReferenceDate

public void setReferenceDate(java.lang.String refDate)
Sets the reference date.

Parameters:
refDate - a String of String containing the in property names.

getReferenceDate

public java.lang.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.

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(java.lang.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(java.lang.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

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