|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.beans.metadata.plugins.AbstractValueMetaData
org.jboss.beans.metadata.plugins.AbstractTypeMetaData
org.jboss.beans.metadata.plugins.AbstractCollectionMetaData
public class AbstractCollectionMetaData
Collection metadata.
Field Summary | |
---|---|
protected ArrayList |
collection
The collection |
protected String |
elementType
The element type |
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData |
---|
configurator, type |
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData |
---|
value |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Constructor Summary | |
---|---|
AbstractCollectionMetaData()
Create a new collection value |
Method Summary | |
---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
Iterator |
getChildren()
Return the child nodes |
protected Object |
getCollectionInstance(TypeInfo info,
ClassLoader cl,
Class expected)
Create the collection instance |
protected Object |
getDefaultCollectionInstance()
Create the default collection instance |
protected ClassInfo |
getElementClassInfo(ClassLoader cl)
Get the class info for the element type |
String |
getElementType()
Get the element type |
Object |
getValue(TypeInfo info,
ClassLoader cl)
Get the value. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
void |
setElementType(String elementType)
Set the element type |
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData |
---|
getClassInfo, getType, setConfigurator, setType, visit |
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData |
---|
getUnderlyingValue, getValue, setValue, toShortString |
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString |
Field Detail |
---|
protected ArrayList collection
protected String elementType
Constructor Detail |
---|
public AbstractCollectionMetaData()
Method Detail |
---|
public String getElementType()
public void setElementType(String elementType)
elementType
- the element typepublic Object getValue(TypeInfo info, ClassLoader cl) throws Throwable
ValueMetaData
getValue
in interface ValueMetaData
getValue
in class AbstractValueMetaData
info
- the type infocl
- the classloader
Throwable
- for any errorpublic boolean add(Object o)
add
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
public void clear()
clear
in interface Collection
public boolean contains(Object o)
contains
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
public boolean isEmpty()
isEmpty
in interface Collection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
public boolean remove(Object o)
remove
in interface Collection
public boolean removeAll(Collection c)
removeAll
in interface Collection
public boolean retainAll(Collection c)
retainAll
in interface Collection
public int size()
size
in interface Collection
public Object[] toArray()
toArray
in interface Collection
public Object[] toArray(Object[] a)
toArray
in interface Collection
public Iterator getChildren()
MetaDataVisitorNode
getChildren
in interface MetaDataVisitorNode
getChildren
in class AbstractValueMetaData
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractTypeMetaData
protected Object getDefaultCollectionInstance() throws Throwable
Throwable
- for any errorprotected Object getCollectionInstance(TypeInfo info, ClassLoader cl, Class expected) throws Throwable
info
- the request typecl
- the classloaderexpected
- the expected class
Throwable
- for any errorprotected ClassInfo getElementClassInfo(ClassLoader cl) throws Throwable
cl
- the classloader
Throwable
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |