|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.value.AbstractValues
public abstract class AbstractValues
| Constructor Summary | |
|---|---|
AbstractValues()
|
|
| Method Summary | |
|---|---|
boolean |
asBoolean()
Return the value as a boolean. |
boolean[] |
asBooleanArray()
Default implementation throws FormatConversionException. |
int |
asInt()
Return the value as an int. |
int[] |
asIntArray()
Default implementation throws FormatConversionException. |
java.lang.Object |
asObject()
Return the value. |
java.lang.Object[] |
asObjectArray()
Return the values as an array of converted object. |
java.util.List |
asObjectList()
Return the values as an immutable collection of converted object or null. |
boolean |
equals(java.lang.Object obj)
|
protected abstract java.lang.Object[] |
getObjects()
Must always return a non null array !!! |
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 |
|---|
asString, asStringArray |
| Constructor Detail |
|---|
public AbstractValues()
| Method Detail |
|---|
protected abstract java.lang.Object[] getObjects()
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 isNull()
Value
isNull in interface Valuepublic boolean isMultiValued()
Value
isMultiValued in interface Value
public int[] asIntArray()
throws NullConversionException,
FormatConversionException
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
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.lang.Object[] asObjectArray()
Value
asObjectArray in interface Valuepublic java.lang.Object asObject()
Value
asObject in interface Valuepublic 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 | ||||||||