public class TaxParameterModel extends TaxParameter implements XMLMarshallable
TaxParameter adding XML marshalling.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="taxParameter">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="type" type="BasicFieldType" use="required" />
<xs:attribute name="value" type="xs:string" />
<xs:attribute name="propertyName" type="xs:string" />
</xs:complexType>
</xs:element><xs:simpleType name="BasicFieldType">
<xs:restriction base="xs:string">
<xs:enumeration value="string"/>
<xs:enumeration value="date"/>
<xs:enumeration value="number"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MODEL_NAME |
| Constructor and Description |
|---|
TaxParameterModel() |
TaxParameterModel(java.lang.String name,
BasicFieldType type,
java.lang.Object defaultValue,
java.lang.String propertyName) |
| 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. |
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.
|
public static final java.lang.String MODEL_NAME
public TaxParameterModel()
public TaxParameterModel(java.lang.String name,
BasicFieldType type,
java.lang.Object defaultValue,
java.lang.String propertyName)
public 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 setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into