|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.migration.model22.other.Value
A read only interface used to retrieve data. It represents both for mono value and multi values. It must implement equals and hashCode. The semantics : | storage | mono | multi | | xxx | xxx | [xxx] | | null | null | [null] | -------------------------------- | [] | null | [] | | [null,..] | null | [null,..] | | ["1",..] | "1" | ["1",..] |
Constructor Summary | |
Value()
|
Method Summary | |
java.lang.Object |
asObject()
Return the value. |
abstract java.lang.Object[] |
asObjectArray()
Return the values as an array of converted object. |
java.lang.String |
asString()
Return the value as a string or null if the value is null. |
java.lang.String[] |
asStringArray()
Return the values as an array of string. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
boolean |
isEmpty()
Return true if it contains zero value. |
abstract boolean |
isInstanceOf(java.lang.Class clazz)
|
boolean |
isMultiValued()
Return true if it contains more than one value. |
boolean |
isNull()
Return true if the value is null. |
int |
size()
Return the size. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Value()
Method Detail |
public abstract boolean isInstanceOf(java.lang.Class clazz)
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
public boolean isNull()
public java.lang.String asString()
public java.lang.Object asObject()
public boolean isMultiValued()
public boolean isEmpty()
public int size()
public java.lang.String[] asStringArray()
public abstract java.lang.Object[] asObjectArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |