|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.migration.model20.other.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.migration.model20.other.Value |
asObject, asObjectArray, asString |
| Constructor Detail |
public AbstractValue()
| Method Detail |
public boolean isNull()
Value
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 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 ValueFormatConversionException - if one of the values cannot be converted
NullConversionException - if one of the values is null
public boolean[] asBooleanArray()
throws NullConversionException,
FormatConversionException
Value
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.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 | |||||||||