Package com.highdeal.pnr.hci
Class PreTierTableComponentModel
java.lang.Object
com.highdeal.pnr.hci.RateComponentModel
com.highdeal.pnr.hci.PreTierTableComponentModel
- All Implemented Interfaces:
XMLMarshallable,ContextualNode
This class represents a rate component which
executes a tier table.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.booleanReturns true if the component is valid.getContext(ContextualNode child) Gets the context description for the specified child; The context description contains all the context properties.Gets the property name that contains the name of group.Gets the input property name.intGets the maximum child count (1).Gets the out mapping.List<com.highdeal.pnr.hci.PropertyReference>Returns the list of the properties that are used in this component.getTable()Gets the tier table.Gets the code of the tier table used in this component.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidSets the property name that contains the name of group to use.voidSets the input property name.voidSets the output mapping.voidSets the tier table.voidSets the code of the tier table used in this component.Methods inherited from class com.highdeal.pnr.hci.RateComponentModel
findRootRateModel, getChildAt, getChildCount, getChildren, getDescription, getName, getParent, getPropertyNames, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, remove, removeChild, setAttributes, setChild, setChildren, setDescription, setName, setParentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.highdeal.pnr.hci.ContextualNode
inheritedContext, setParent
-
Field Details
-
IN_PROPERTY_NAME
- See Also:
-
GROUP_PROPERTY_NAME
- See Also:
-
OUT_PROPERTY_MAPPING
- See Also:
-
-
Constructor Details
-
PreTierTableComponentModel
public PreTierTableComponentModel()Builds an empty PreTierTableComponentModel.
-
-
Method Details
-
setTable
Sets the tier table.- Parameters:
t- the tier table.
-
getTable
Gets the tier table.- Returns:
- the tier table.
-
getTableCode
Gets the code of the tier table used in this component.- Returns:
- the code of the tier table used in this component.
-
setTableCode
Sets the code of the tier table used in this component.- Parameters:
c- the code of the tier table used in this component.
-
setInPropertyName
Sets the input property name.- Parameters:
p- a string containing the input property name.
-
getInPropertyName
Gets the input property name.- Returns:
- a string containing the input property name.
-
setGroupPropertyName
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
Gets the property name that contains the name of group.- Returns:
- a string containing the property name that contains the name of group.
-
setOutMapping
Sets the output mapping.- Parameters:
m- a Vector ofStringcontaining the output property names.
-
getOutMapping
Gets the out mapping.- Returns:
- a Vector of
Stringcontaining the output property names.
-
getMaxChildCount
public int getMaxChildCount()Gets the maximum child count (1). Only one child is allowed for this component.- Specified by:
getMaxChildCountin classRateComponentModel- Returns:
- the maximum child count.
-
checkValidity
public boolean checkValidity()Returns true if the component is valid.- Specified by:
checkValidityin classRateComponentModel- Returns:
- true if the component is valid, false otherwise.
-
getPropertyReferences
Description copied from class:RateComponentModelReturns the list of the properties that are used in this component.- Specified by:
getPropertyReferencesin classRateComponentModel- Returns:
- the list of the properties that are used in this component
-
getContext
Description copied from interface:ContextualNodeGets the context description for the specified child; The context description contains all the context properties.- Specified by:
getContextin interfaceContextualNode- Overrides:
getContextin classRateComponentModel- Parameters:
child- The child node- Returns:
- The context description
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Overrides:
addChildin classRateComponentModel- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Overrides:
addCharacterDatain classRateComponentModel- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Overrides:
marshalin classRateComponentModel- Parameters:
output- TheXML outputto marshal the object into
-