Class BooleanModel

java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.hci.BooleanModel
All Implemented Interfaces:
ITagNameProvider, IXMLMarshallable, XMLMarshallable

public class BooleanModel extends HCIModelAdapter
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 Details

  • Constructor Details

    • BooleanModel

      public BooleanModel()
      Constructs a BooleanModel with a false Boolean.
    • BooleanModel

      public BooleanModel(boolean value)
      Constructs a BooleanModel with a given boolean.
      Parameters:
      value - The boolean of the BooleanModel
  • Method Details

    • getValue

      public boolean getValue()
      Gets the boolean contained by the BooleanValue.
      Returns:
      The boolean contained by the BooleanValue
    • setValue

      public void setValue(boolean value)
      Sets the boolean contained by the BooleanValue.
      Parameters:
      value - The boolean contained by the BooleanValue
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Parameters:
      cData - The character data to be added
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Parameters:
      atts - The XML attributes of the current element
    • marshalAttributes

      public void marshalAttributes(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the attributes of an object.
      Parameters:
      output - The XML output to marshal the object attributes into
    • marshalChildren

      public void marshalChildren(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the child objects of an object.
      Parameters:
      output - The XML output to marshal the child objects into
    • getTagName

      public String getTagName()
      Description copied from interface: ITagNameProvider
      Gets the XML tag name of the HCI model.
      Returns:
      The XML tag name