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

AbstractValue - JBOSS Portal 2.6 API 英文版文档


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

java.lang.Object
  extended byorg.jboss.portal.migration.model20.other.AbstractValue
All Implemented Interfaces:
java.io.Serializable, Value
Direct Known Subclasses:
BooleanValue, IntegerValue, NullValue, StringValue

public abstract class AbstractValue
extends java.lang.Object
implements Value

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

Constructor Summary
AbstractValue()
           
 
Method Summary
 boolean asBoolean()
          Return the value as a boolean.
 boolean[] asBooleanArray()
          Return the values as an array of boolean.
 int asInt()
          Return the value as an int.
 int[] asIntArray()
          Return the values as an array of int.
 java.util.List asObjectList()
          Return the values as an immutable collection of converted object or null.
 java.lang.String[] asStringArray()
          Return the values as an array of string.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isMultiValued()
          Return true if it contains more than one value.
 boolean isNull()
          Return true if the value is null.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.portal.migration.model20.other.Value
asObject, asObjectArray, asString
 

Constructor Detail

AbstractValue

public AbstractValue()
Method Detail

isNull

public boolean isNull()
Description copied from interface: Value
Return true if the value is null.

Specified by:
isNull in interface Value

asInt

public int asInt()
          throws NullConversionException,
                 FormatConversionException
Description copied from interface: Value
Return the value as an int.

Specified by:
asInt in interface Value
Throws:
NullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be converted

asBoolean

public boolean asBoolean()
                  throws NullConversionException,
                         FormatConversionException
Description copied from interface: Value
Return the value as a boolean.

Specified by:
asBoolean in interface Value
Throws:
FormatConversionException - if one of the values cannot be converted
NullConversionException - if one of the values is null

isMultiValued

public boolean isMultiValued()
Description copied from interface: Value
Return true if it contains more than one value.

Specified by:
isMultiValued in interface Value

asStringArray

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

Specified by:
asStringArray in interface Value

asIntArray

public int[] asIntArray()
                 throws NullConversionException,
                        FormatConversionException
Description copied from interface: Value
Return the values as an array of int.

Specified by:
asIntArray in interface Value
Throws:
FormatConversionException - if one of the values cannot be converted
NullConversionException - if one of the values is null

asBooleanArray

public boolean[] asBooleanArray()
                         throws NullConversionException,
                                FormatConversionException
Description copied from interface: Value
Return the values as an array of boolean.

Specified by:
asBooleanArray in interface Value
Throws:
FormatConversionException - if one of the values cannot be converted
NullConversionException - if one of the values is null

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

asObjectList

public java.util.List asObjectList()
Description copied from interface: Value
Return the values as an immutable collection of converted object or null.

Specified by:
asObjectList in interface Value

toString

public java.lang.String toString()