Package org.ow2.clif.scenario.isac.util
Class BooleanHolder
- java.lang.Object
-
- org.ow2.clif.scenario.isac.util.BooleanHolder
-
public class BooleanHolder extends java.lang.ObjectUtility 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
-
-
Constructor Summary
Constructors Constructor Description BooleanHolder()BooleanHolder(boolean b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBooleanValue()voidsetBooleanValue(boolean booleanValue)voidsetBooleanValue(java.lang.String value)Sets this boolean value according to a string representation of a boolean.java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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 ClifExceptionSets 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
-
-