public class InMacroPropertyModel extends Object implements XMLMarshallable
string,
number, or date.PricingMacroModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="inProperty">
<xs:complexType>
<xs:sequence>
<xs:element ref="additionalInformation" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
InMacroPropertyModel()
Constructs an empty input property model.
|
InMacroPropertyModel(String name,
String description,
int type)
Constructs an input property with a name,
a description and a type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
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 property is valid.
|
List<AdditionalInfoModel> |
getAdditionalInfoList()
Gets the list of
Additional Informations. |
String |
getDescription()
Returns the description of the input property.
|
String |
getName()
Returns the name of the input property.
|
int |
getType()
Gets the type of the input property.
|
boolean |
isPersistentCounter()
Returns true if the input property must be a persistent counter.
|
boolean |
isTransientCounter()
Returns true if the input property must be a transient counter.
|
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 |
setDescription(String d)
Sets the description of the input property.
|
void |
setName(String n)
Sets the name of the input property.
|
void |
setNotCounter()
Sets if the input property must be neither a persistent nor a transient counter.
|
void |
setPersistentCounter(boolean c)
Sets if the input property must be a persistent counter.
|
void |
setTransientCounter(boolean c)
Sets if the input property must be a transient counter.
|
void |
setType(int t)
Sets the type of the input property.
|
public InMacroPropertyModel()
public String getName()
public void setName(String n)
n - the name of the input property.public String getDescription()
public void setDescription(String d)
d - the description of the input property.public int getType()
public void setType(int t)
t - the type of the input property.public void setNotCounter()
public boolean isPersistentCounter()
public void setPersistentCounter(boolean c)
c - true if the input property must be a persistent counter,
false otherwise.public boolean isTransientCounter()
public void setTransientCounter(boolean c)
c - true if the input property must be a transient counter,
false otherwise.public List<AdditionalInfoModel> getAdditionalInfoList()
Additional Informations.public boolean checkValidity()
setType(int).public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(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