com.highdeal.pnr.hci
Class PreMacroComponentModel

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

public class PreMacroComponentModel
extends MacroComponentModel

This class represents a rate component which runs a pricing macro as a pre-component.


Field Summary
 
Fields inherited from class com.highdeal.pnr.hci.MacroComponentModel
amountPropertyName, inMapping, macro, macroCode, outMapping
 
Fields inherited from class com.highdeal.pnr.hci.RateComponentModel
children, description, name, parent
 
Constructor Summary
PreMacroComponentModel()
           
 
Method Summary
 boolean checkValidity()
          Returns true if the component is valid.
 RatingContextDescription getContext(ContextualNode child)
          Returns the rating context description of this component.
 int getMaxChildCount()
          Returns the maximum number of children for this component, that is 1.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 
Methods inherited from class com.highdeal.pnr.hci.MacroComponentModel
addChild, getAmountPropertyName, getInMapping, getMacro, getMacroCode, getOutMapping, marshallElements, setAmountPropertyName, setAttributes, setMacro, setMacroCode
 
Methods inherited from class com.highdeal.pnr.hci.RateComponentModel
addCharacterData, getChildAt, getChildCount, getChildren, getDescription, getName, getParent, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, marshallChildren, remove, removeChild, setChild, setChild, setChildren, setDescription, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreMacroComponentModel

public PreMacroComponentModel()
Method Detail

getMaxChildCount

public int getMaxChildCount()
Returns the maximum number of children for this component, that is 1.

Specified by:
getMaxChildCount in class RateComponentModel
Returns:
1

checkValidity

public boolean checkValidity()
Description copied from class: MacroComponentModel
Returns true if the component is valid. Component is valid if all the following conditions are met:

Overrides:
checkValidity in class MacroComponentModel
Returns:
true if the component is valid, false otherwise.

getContext

public RatingContextDescription getContext(ContextualNode child)
Returns the rating context description of this component. For a pre macro component, the rating context description includes the mapping of the out properties of the embedded pricing macro.

Specified by:
getContext in interface ContextualNode
Overrides:
getContext in class RateComponentModel
Parameters:
child - The child node
Returns:
the rating context description.

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)