|
||||||||||
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.CollectionValueSupport
public class CollectionValueSupport
CollectionValueSupport.
Constructor Summary | |
---|---|
CollectionValueSupport(CollectionMetaType metaType)
Create a new CollectionValueSupport. |
|
CollectionValueSupport(CollectionMetaType metaType,
MetaValue[] elements)
Create a new ArrayValueSupport. |
Method Summary | |
---|---|
MetaValue |
clone()
Clone the meta value |
boolean |
equals(Object obj)
|
MetaValue[] |
getElements()
Get the value. |
CollectionMetaType |
getMetaType()
Get the metatype for this value |
int |
getSize()
Get the size of the collection. |
int |
hashCode()
|
Iterator<MetaValue> |
iterator()
|
void |
setElements(MetaValue[] elements)
Set the value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CollectionValueSupport(CollectionMetaType metaType)
metaType
- the collection meta type
IllegalArgumentException
- for a null array MetaTypepublic CollectionValueSupport(CollectionMetaType metaType, MetaValue[] elements)
metaType
- the collection meta typeelements
- the elements
IllegalArgumentException
- for a null array MetaTypeMethod Detail |
---|
public CollectionMetaType getMetaType()
MetaValue
getMetaType
in interface CollectionValue
getMetaType
in interface MetaValue
public MetaValue[] getElements()
getElements
in interface CollectionValue
public int getSize()
getSize
in interface CollectionValue
public Iterator<MetaValue> iterator()
iterator
in interface Iterable<MetaValue>
public void setElements(MetaValue[] elements)
elements
- the elements.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public MetaValue clone()
MetaValue
clone
in interface MetaValue
clone
in class AbstractMetaValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |