org.jboss.portal.common.value
Class BooleanValue
java.lang.Object
org.jboss.portal.common.value.AbstractValue
org.jboss.portal.common.value.BooleanValue
- All Implemented Interfaces:
- java.io.Serializable, Value
public class BooleanValue
- extends AbstractValue
- See Also:
- Serialized Form
Method Summary |
boolean |
asBoolean()
Return the value as a boolean. |
java.lang.Object |
asObject()
Return the value. |
java.lang.Object[] |
asObjectArray()
Return the values as an array of converted object. |
java.lang.String |
asString()
Return the value as a string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BooleanValue
public BooleanValue()
BooleanValue
public BooleanValue(java.lang.String value)
BooleanValue
public BooleanValue(boolean _value)
BooleanValue
public BooleanValue(java.lang.Boolean value)
asString
public java.lang.String asString()
- Description copied from interface:
Value
- Return the value as a string.
asBoolean
public boolean asBoolean()
throws NullConversionException,
FormatConversionException
- Description copied from interface:
Value
- Return the value as a boolean.
- Specified by:
asBoolean
in interface Value
- Overrides:
asBoolean
in class AbstractValue
- Throws:
NullConversionException
- if one of the values is null
FormatConversionException
- if one of the values cannot be converted
asObject
public java.lang.Object asObject()
- Description copied from interface:
Value
- Return the value.
asObjectArray
public java.lang.Object[] asObjectArray()
- Description copied from interface:
Value
- Return the values as an array of converted object.