public class OutMacroPropertyModel extends java.lang.Object implements XMLMarshallable
string,
number, or date.PricingMacroModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="outProperty">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="defaultValue" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
OutMacroPropertyModel()
Constructs an empty output property model.
|
OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type)
Constructs an output property with a name,
a description and a type.
|
OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type,
java.lang.Object defaultValue)
Constructs an output property with a name,
a description, a type and a default value.
|
| Modifier and Type | Method and Description |
|---|---|
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 property is valid.
|
java.util.Date |
getDateValue()
Gets the default value of the output property as a date.
|
java.lang.Object |
getDefaultValue()
Gets the default value of the output property.
|
java.lang.String |
getDescription()
Returns the description of the output property.
|
java.lang.String |
getName()
Returns the name of the output property.
|
java.math.BigDecimal |
getNumberValue()
Gets the default value of the output property as a decimal.
|
java.lang.String |
getStringValue()
Gets the default value of the output property as a string.
|
int |
getType()
Gets the type of the output property.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDefaultValue(java.lang.Object defaultValue)
Sets the default value of the output property.
|
void |
setDescription(java.lang.String d)
Sets the description of the output property.
|
void |
setName(java.lang.String n)
Sets the name of the output property.
|
void |
setType(int t)
Sets the type of the output property.
|
public OutMacroPropertyModel()
public OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type,
java.lang.Object defaultValue)
setType(int) for allowed type value)name - the name of the output property.description - the description of the output property.type - the type of the output property.defaultValue - the default value of the output property.public OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type)
setType(int) for type allowed value)name - the name of the output property.description - the description of the output property.type - the type of the output property.public java.lang.String getName()
public void setName(java.lang.String n)
n - the name of the output property.public java.lang.String getDescription()
public void setDescription(java.lang.String d)
d - the description of the output property.public int getType()
public void setType(int t)
t - the type of the output property.public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object defaultValue)
defaultValue - the default value of the output property.public java.lang.String getStringValue()
public java.math.BigDecimal getNumberValue()
public java.util.Date getDateValue()
public boolean checkValidity()
setType(int)).public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into