public abstract class MacroComponentModel extends RateComponentModel
| Constructor and Description |
|---|
MacroComponentModel()
Constructs a macro component model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(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.
|
String |
getAmountPropertyName()
Returns the name of the property in which the amount will be put.
|
Vector<String> |
getInMapping()
Returns an ordered mapping for the macro.
|
PricingMacroModel |
getMacro()
Returns the pricing macro for this macro component.
|
String |
getMacroCode()
Gets the code of the macro used in this component.
|
Vector<String> |
getOutMapping()
Returns an ordered mapping for the macro.
|
void |
setAmountPropertyName(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(String c)
Sets the code of the macro used in this component.
|
addCharacterData, getChildAt, getChildCount, getChildren, getContext, getDescription, getMaxChildCount, getName, getParent, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, marshal, remove, removeChild, setChild, setChildren, setDescription, setName, setParentpublic MacroComponentModel()
public PricingMacroModel getMacro()
public void setMacro(PricingMacroModel r)
r - the pricing macro for this component.public String getMacroCode()
public void setMacroCode(String c)
c - the code of the macro used in this component.public String getAmountPropertyName()
public void setAmountPropertyName(String name)
name - the name of the amount property.public Vector<String> getInMapping()
String that
represent properties in the rating context.public Vector<String> getOutMapping()
String that
represent properties in the rating context.public boolean checkValidity()
checkValidity in class RateComponentModelpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallablesetAttributes in class RateComponentModelatts - The XML attributes of the current elementpublic void addChild(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