|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metatype.api.values.AbstractMetaValue
org.jboss.metatype.api.values.ArrayValueSupport
public class ArrayValueSupport
ArrayValue. TODO tests
| Constructor Summary | |
|---|---|
ArrayValueSupport(ArrayMetaType metaType)
Create a new ArrayValueSupport. |
|
ArrayValueSupport(ArrayMetaType metaType,
Object value)
Create a new ArrayValueSupport. |
|
| Method Summary | |
|---|---|
MetaValue |
clone()
Clone the meta value |
protected String |
deepToString()
|
boolean |
equals(Object obj)
|
int |
getLength()
Get the length of the array. |
ArrayMetaType |
getMetaType()
Get the metatype for this value |
Object |
getValue()
Get the value. |
Object |
getValue(int index)
Get the array element at index. |
int |
hashCode()
|
Iterator<Object> |
iterator()
|
void |
setValue(Object value)
Set the value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayValueSupport(ArrayMetaType metaType)
metaType - the array meta type
IllegalArgumentException - for a null array MetaType
public ArrayValueSupport(ArrayMetaType metaType,
Object value)
metaType - the array meta typevalue - the value
IllegalArgumentException - for a null array MetaType| Method Detail |
|---|
public ArrayMetaType getMetaType()
MetaValue
getMetaType in interface ArrayValuegetMetaType in interface MetaValuepublic Object getValue()
getValue in interface ArrayValueArrayValue.getValue(int)public int getLength()
getLength in interface ArrayValuepublic Object getValue(int index)
ArrayValue
getValue in interface ArrayValueindex - - index into the array.
public Iterator<Object> iterator()
iterator in interface Iterable<Object>public void setValue(Object value)
value - the value.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic MetaValue clone()
MetaValue
clone in interface MetaValueclone in class AbstractMetaValueprotected String deepToString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||