Class BooleanValue

All Implemented Interfaces:
Peer

public final class BooleanValue extends Content
An element that creates a unit of data content representing a boolean value. boolean-data is PCDATA that obeys the following rules: the content is '1' (one), representing the value true. the content is '0' (zero), representing the value false.
  • Constructor Details

    • BooleanValue

      public BooleanValue(Element parent, Node prevSibling)
  • Method Details

    • equals

      public boolean equals(Object object)
      Description copied from class: Content
      Equals is a helper function that returns whether two Contents are equal (case-sensitive, and considering the null state of both nodes).
      Overrides:
      equals in class Content
      Parameters:
      object - the content node to compare.
      Returns:
      true if the content nodes are equal.
    • hashCode

      public int hashCode()
      Description copied from class: Content
      Returns a hash code value for the object. This method is unsupported.
      Overrides:
      hashCode in class Content
    • getScriptTable

      public ScriptTable getScriptTable()
      Overrides:
      getScriptTable in class Content
    • getValue

      public boolean getValue()
      return the Boolean value corresponding to the content of this element
      Returns:
      true/false
    • setValue

      public void setValue(boolean bValue)
      Set the content of this element from a boolean value
      Parameters:
      bValue - the boolean value.
    • toString

      public String toString()
      Description copied from class: Content
      Return the value of the content as a string
      Overrides:
      toString in class Content
      Returns:
      the string representation of the value.
    • valueHasTypeMismatch

      public boolean valueHasTypeMismatch()
      Returns true if the current value does not legally parse into a boolean.