Class BooleanHolder


  • public class BooleanHolder
    extends java.lang.Object
    Utility class for transmitting a reference to a boolean. Provides a utility method to set the boolean value from a string representation.
    Author:
    JC Meillaud, A Peyrard, Bruno Dillenseger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getBooleanValue()  
      void setBooleanValue​(boolean booleanValue)  
      void setBooleanValue​(java.lang.String value)
      Sets this boolean value according to a string representation of a boolean.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BooleanHolder

        public BooleanHolder()
      • BooleanHolder

        public BooleanHolder​(boolean b)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBooleanValue

        public boolean getBooleanValue()
        Returns:
        Returns the booleanValue.
      • setBooleanValue

        public void setBooleanValue​(boolean booleanValue)
        Parameters:
        booleanValue - The booleanValue to set.
      • setBooleanValue

        public void setBooleanValue​(java.lang.String value)
                             throws ClifException
        Sets this boolean value according to a string representation of a boolean.
        Parameters:
        value - the case-insensitive string representation of a boolean. Valid strings for true are: true, yes, on, 1 Valid strings for false are: false, no, off, 0
        Throws:
        ClifException - if the provided string