|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.value.AbstractValue
public abstract class AbstractValue
| 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.common.value.Value |
|---|
asObject, asObjectArray, asString |
| Constructor Detail |
|---|
public AbstractValue()
| Method Detail |
|---|
public boolean isNull()
Value
isNull in interface Value
public int asInt()
throws NullConversionException,
FormatConversionException
Value
asInt in interface ValueNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be converted
public boolean asBoolean()
throws NullConversionException,
FormatConversionException
Value
asBoolean in interface ValueNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be convertedpublic boolean isMultiValued()
Value
isMultiValued in interface Valuepublic java.lang.String[] asStringArray()
Value
asStringArray in interface Value
public int[] asIntArray()
throws NullConversionException,
FormatConversionException
Value
asIntArray in interface ValueNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be converted
public boolean[] asBooleanArray()
throws NullConversionException,
FormatConversionException
Value
asBooleanArray in interface ValueNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be convertedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.List asObjectList()
Value
asObjectList in interface Valuepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||