LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data
Class LyBooleanValue

java.lang.Object
  extended by leon.data.LyValue
      extended by leon.data.LyFieldInfoValue
          extended by leon.data.LyBooleanValue

public class LyBooleanValue
extends LyFieldInfoValue

This class offers methods for constructing, accessing and modifying values corresponding to a LyChoiceFieldInfo with a boolean type.

See Also:
LyChoiceFieldInfo, LyObject

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo)
          Constructs an empty boolean value for the given choice field.
LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo, boolean value)
          Constructs a boolean value for the given choice field from a boolean.
LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo, java.lang.Boolean value)
          Constructs a boolean value for the given choice field from a Boolean.
LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo, java.lang.String value)
          Constructs a boolean choice value for the given choice field from a string.
 
Method Summary
 boolean booleanValue()
          Gets value of this boolean value as a boolean (primitive type).
 java.lang.Boolean getBooleanValue()
          Gets value of this boolean value as a Boolean.
 
Methods inherited from class leon.data.LyFieldInfoValue
compare, contains, equals, equals, getFieldInfo, getName, getName, getShortName, getString
 
Methods inherited from class leon.data.LyValue
getField, getValue, isNull, setValue, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyBooleanValue

public LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo)
Constructs an empty boolean value for the given choice field.

Parameters:
choiceFieldInfo - Choice fieldInfo for which a value is created.

LyBooleanValue

public LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo,
                      java.lang.String value)
Constructs a boolean choice value for the given choice field from a string.

Parameters:
choiceFieldInfo - Choice fieldInfo for which a value is created.
value - String value.
See Also:
LyChoiceFieldInfo.parse(java.lang.String)

LyBooleanValue

public LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo,
                      boolean value)
Constructs a boolean value for the given choice field from a boolean.

Parameters:
choiceFieldInfo - Choice fieldInfo for which a value is created.
value - Value passed as a boolean.

LyBooleanValue

public LyBooleanValue(LyChoiceFieldInfo choiceFieldInfo,
                      java.lang.Boolean value)
Constructs a boolean value for the given choice field from a Boolean.

Parameters:
choiceFieldInfo - Choice fieldInfo for which a value is created.
value - Value passed as a Boolean.
Method Detail

getBooleanValue

public java.lang.Boolean getBooleanValue()
Gets value of this boolean value as a Boolean.

Returns:
A Boolean corresponding to this value.
Throws:
java.lang.IllegalStateException - If the choice field is not a boolean.

booleanValue

public boolean booleanValue()
Gets value of this boolean value as a boolean (primitive type).

Returns:
A short corresponding to this value. Returns false if the boolean value is null.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com