|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.migration.model20.other.AbstractValues
| Field Summary | |
private int |
hashCode
The cached hashCode. |
| 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.migration.model20.other.Value |
asString, asStringArray |
| Field Detail |
private int hashCode
| Constructor Detail |
public AbstractValues()
| Method Detail |
protected abstract java.lang.Object[] getObjects()
public int asInt()
throws NullConversionException,
FormatConversionException
Value
NullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be converted
public boolean asBoolean()
throws NullConversionException,
FormatConversionException
Value
FormatConversionException - if one of the values cannot be converted
NullConversionException - if one of the values is nullpublic boolean isNull()
Value
public boolean isMultiValued()
Value
isMultiValued in interface Value
public int[] asIntArray()
throws NullConversionException,
FormatConversionException
asIntArray in interface ValueFormatConversionException - if one of the values cannot be converted
NullConversionException - if one of the values is null
public boolean[] asBooleanArray()
throws NullConversionException,
FormatConversionException
asBooleanArray in interface ValueFormatConversionException - if one of the values cannot be converted
NullConversionException - if one of the values is nullpublic int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.Object[] asObjectArray()
Value
asObjectArray in interface Valuepublic java.lang.Object asObject()
public java.util.List asObjectList()
Value
asObjectList in interface Valuepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||