Class BooleanNode

All Implemented Interfaces:
Cloneable

public class BooleanNode extends LeafNode<Boolean>
The BooleanNode class represents a boolean in a configuration tree.
  • Constructor Details

    • BooleanNode

      public BooleanNode()
    • BooleanNode

      public BooleanNode(boolean value)
  • Method Details

    • value

      public Boolean value()
      Overrides:
      value in class LeafNode<Boolean>
    • getValue

      public String getValue()
      Description copied from class: LeafNode
      Subclasses must implement this, in compliance with the rules given in the return tag.
      Specified by:
      getValue in class LeafNode<Boolean>
      Returns:
      the String representation of the node value, or the 'null' object if the node value is null.
    • toString

      public String toString()
      Description copied from class: LeafNode
      Subclasses must implement this, in compliance with the rules given in the return tag.
      Specified by:
      toString in class LeafNode<Boolean>
      Returns:
      the String representation of the node value, or the string "(null)" if the value is null.
    • doSetValue

      protected boolean doSetValue(String value)
      Specified by:
      doSetValue in class LeafNode<Boolean>