站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

BooleanValue - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model20.other
Class BooleanValue

java.lang.Object
  extended byorg.jboss.portal.migration.model20.other.AbstractValue
      extended byorg.jboss.portal.migration.model20.other.BooleanValue
All Implemented Interfaces:
java.io.Serializable, Value

public class BooleanValue
extends AbstractValue

Version:
$Revision: 5449 $
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
private static java.lang.Boolean[] EMPTY_BOOLEAN_ARRAY
           
private  java.lang.Boolean value
           
 
Constructor Summary
BooleanValue()
           
BooleanValue(boolean _value)
           
BooleanValue(java.lang.Boolean value)
           
BooleanValue(java.lang.String value)
           
 
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 org.jboss.portal.migration.model20.other.AbstractValue
asBooleanArray, asInt, asIntArray, asObjectList, asStringArray, equals, hashCode, isMultiValued, isNull, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_BOOLEAN_ARRAY

private static final java.lang.Boolean[] EMPTY_BOOLEAN_ARRAY

value

private java.lang.Boolean value
Constructor Detail

BooleanValue

public BooleanValue()

BooleanValue

public BooleanValue(java.lang.String value)

BooleanValue

public BooleanValue(boolean _value)

BooleanValue

public BooleanValue(java.lang.Boolean value)
Method Detail

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
FormatConversionException

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.