com.highdeal.pnr.hci
Class PreTierTableComponentModel

java.lang.Object
  extended by com.highdeal.pnr.hci.RateComponentModel
      extended by 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 Summary
 
Fields inherited from class com.highdeal.pnr.hci.RateComponentModel
children, description, name, parent
 
Constructor Summary
PreTierTableComponentModel()
          Builds an empty PreTierTableComponentModel.
 
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.lang.String getGroupPropertyName()
          Gets the property name that contains the name of group.
 java.lang.String getInPropertyName()
          Gets the input property name.
 int getMaxChildCount()
          Gets the maximum child count (1).
 java.util.Vector<java.lang.String> getOutMapping()
          Gets the out mapping.
 TierTableModel getTable()
          Gets the tier table.
 java.lang.String getTableCode()
          Gets the code of the tier table used in this component.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setGroupPropertyName(java.lang.String p)
          Sets the property name that contains the name of group to use.
 void setInPropertyName(java.lang.String p)
          Sets the input property name.
 void setOutMapping(java.util.Vector<java.lang.String> m)
          Sets the output mapping.
 void setTable(TierTableModel t)
          Sets the tier table.
 void setTableCode(java.lang.String c)
          Sets the code of the tier 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

PreTierTableComponentModel

public PreTierTableComponentModel()
Builds an empty PreTierTableComponentModel.

Method Detail

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 java.lang.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(java.lang.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(java.lang.String p)
Sets the input property name.

Parameters:
p - a string containing the input property name.

getInPropertyName

public java.lang.String getInPropertyName()
Gets the input property name.

Returns:
a string containing the input property name.

setGroupPropertyName

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

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

getOutMapping

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

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)