Package com.highdeal.hci
Class NumberModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.hci.NumberModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMarshallable
This class is a
BigDecimal container.XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="number">
<xs:complexType>
<xs:attribute name="value" type="xs:decimal"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aNumberModelwith anullBigDecimal.NumberModel(BigDecimal value) Constructs aNumberModelwith a givenBigDecimal. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the XML tag name of the HCI model.getValue()Gets the number contained by theNumberModel.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetValue(BigDecimal value) Sets the number contained by theNumberModel.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The XML tag name of theNumberModel- See Also:
-
-
Constructor Details
-
NumberModel
public NumberModel()Constructs aNumberModelwith anullBigDecimal. -
NumberModel
Constructs aNumberModelwith a givenBigDecimal.- Parameters:
value- the number of theNumberModel.
-
-
Method Details
-
getValue
Gets the number contained by theNumberModel.- Returns:
- The number contained by the
NumberModel
-
setValue
Sets the number contained by theNumberModel.- Parameters:
value- The number contained by theNumberModel
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Parameters:
output- TheXML outputto marshal the child objects into
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Returns:
- The XML tag name
-