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

BooleanValues - JBOSS Portal 2.6 API 英文版文档


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

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

public class BooleanValues
extends AbstractValues

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

Field Summary
private  boolean[] _values
          The cached boolean array.
private  java.lang.Boolean[] values
          The Boolean array.
 
Fields inherited from class org.jboss.portal.migration.model20.other.AbstractValues
 
Constructor Summary
BooleanValues(boolean value)
           
BooleanValues(java.lang.Boolean value)
           
BooleanValues(boolean[] _values)
           
BooleanValues(java.lang.Boolean[] values)
           
BooleanValues(java.lang.String[] values)
           
 
Method Summary
 boolean asBoolean()
          Return the value as a boolean.
 boolean[] asBooleanArray()
          Default implementation throws FormatConversionException.
 java.lang.String asString()
          Return the value as a string.
 java.lang.String[] asStringArray()
          Return the values as an array of string.
protected  java.lang.Object[] getObjects()
          Must always return a non null array !!!
 
Methods inherited from class org.jboss.portal.migration.model20.other.AbstractValues
asInt, asIntArray, asObject, asObjectArray, asObjectList, equals, hashCode, isMultiValued, isNull, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

values

private java.lang.Boolean[] values
The Boolean array.


_values

private boolean[] _values
The cached boolean array.

Constructor Detail

BooleanValues

public BooleanValues(java.lang.String[] values)
              throws java.lang.IllegalArgumentException

BooleanValues

public BooleanValues(java.lang.Boolean value)

BooleanValues

public BooleanValues(java.lang.Boolean[] values)

BooleanValues

public BooleanValues(boolean value)

BooleanValues

public BooleanValues(boolean[] _values)
Method Detail

asStringArray

public java.lang.String[] asStringArray()
Description copied from interface: Value
Return the values as an array of string.


asBooleanArray

public boolean[] asBooleanArray()
                         throws NullConversionException,
                                FormatConversionException
Description copied from class: AbstractValues
Default implementation throws FormatConversionException.

Specified by:
asBooleanArray in interface Value
Overrides:
asBooleanArray in class AbstractValues
Throws:
NullConversionException
FormatConversionException

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 AbstractValues
Throws:
NullConversionException
FormatConversionException

getObjects

protected java.lang.Object[] getObjects()
Description copied from class: AbstractValues
Must always return a non null array !!!

Specified by:
getObjects in class AbstractValues