Package com.highdeal.hci
Class BooleanModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.hci.BooleanModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMarshallable
This
Java class is a Boolean container; It extends the java.lang.Boolean class
by adding features to marshal this object type.- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="boolean">
<xs:complexType>
<xs:attribute name="value" type="xs:boolean"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aBooleanModelwith afalseBoolean.BooleanModel(boolean value) Constructs aBooleanModelwith a givenboolean. -
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.booleangetValue()Gets the boolean contained by theBooleanValue.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(boolean value) Sets the boolean contained by theBooleanValue.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The XML tag name of this data model: "boolean"- See Also:
-
-
Constructor Details
-
BooleanModel
public BooleanModel()Constructs aBooleanModelwith afalseBoolean. -
BooleanModel
public BooleanModel(boolean value) Constructs aBooleanModelwith a givenboolean.- Parameters:
value- The boolean of theBooleanModel
-
-
Method Details
-
getValue
public boolean getValue()Gets the boolean contained by theBooleanValue.- Returns:
- The boolean contained by the
BooleanValue
-
setValue
public void setValue(boolean value) Sets the boolean contained by theBooleanValue.- Parameters:
value- The boolean contained by theBooleanValue
-
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
-