public abstract class MacroComponentModel extends RateComponentModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AMOUNT_PROPERTY_NAME |
static java.lang.String |
IN_PROPERTY_MAPPING |
static java.lang.String |
OUT_PROPERTY_MAPPING |
| Constructor and Description |
|---|
MacroComponentModel()
Constructs a macro component model.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getAmountPropertyName()
Returns the name of the property in which the amount will be put.
|
java.util.Vector<java.lang.String> |
getInMapping()
Returns an ordered mapping for the macro.
|
PricingMacroModel |
getMacro()
Returns the pricing macro for this macro component.
|
java.lang.String |
getMacroCode()
Gets the code of the macro used in this component.
|
java.util.Vector<java.lang.String> |
getOutMapping()
Returns an ordered mapping for the macro.
|
java.util.List<com.highdeal.pnr.hci.PropertyReference> |
getPropertyReferences()
Returns the list of the properties that are used in this component.
|
void |
setAmountPropertyName(java.lang.String name)
Sets the amount property name for this component.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setMacro(PricingMacroModel r)
Sets the pricing macro for this component.
|
void |
setMacroCode(java.lang.String c)
Sets the code of the macro used in this component.
|
addCharacterData, findRootRateModel, getChildAt, getChildCount, getChildren, getContext, getDescription, getMaxChildCount, getName, getParent, getPropertyNames, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, marshal, remove, removeChild, setChild, setChildren, setDescription, setName, setParentpublic static final java.lang.String AMOUNT_PROPERTY_NAME
public static final java.lang.String OUT_PROPERTY_MAPPING
public static final java.lang.String IN_PROPERTY_MAPPING
public MacroComponentModel()
public PricingMacroModel getMacro()
public void setMacro(PricingMacroModel r)
r - the pricing macro for this component.public java.lang.String getMacroCode()
public void setMacroCode(java.lang.String c)
c - the code of the macro used in this component.public java.lang.String getAmountPropertyName()
public void setAmountPropertyName(java.lang.String name)
name - the name of the amount property.public java.util.Vector<java.lang.String> getInMapping()
String that
represent properties in the rating context.public java.util.Vector<java.lang.String> getOutMapping()
String that
represent properties in the rating context.public boolean checkValidity()
checkValidity in class RateComponentModelpublic java.util.List<com.highdeal.pnr.hci.PropertyReference> getPropertyReferences()
RateComponentModelgetPropertyReferences in class RateComponentModelpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallablesetAttributes in class RateComponentModelatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallableaddChild in class RateComponentModeltagName - The name of tag for the childchild - The child to be added