|
||||||||||
| 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 type
public Object getValue(TypeInfo info,
ClassLoader cl)
throws Throwable
ValueMetaData
getValue in interface ValueMetaDatagetValue in class AbstractValueMetaDatainfo - the type infocl - the classloader
Throwable - for any errorpublic boolean add(Object o)
add in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionpublic void clear()
clear in interface Collectionpublic boolean contains(Object o)
contains in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectionpublic boolean remove(Object o)
remove in interface Collectionpublic boolean removeAll(Collection c)
removeAll in interface Collectionpublic boolean retainAll(Collection c)
retainAll in interface Collectionpublic int size()
size in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] a)
toArray in interface Collectionpublic Iterator getChildren()
MetaDataVisitorNode
getChildren in interface MetaDataVisitorNodegetChildren in class AbstractValueMetaDatapublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class AbstractTypeMetaData
protected Object getDefaultCollectionInstance()
throws Throwable
Throwable - for any error
protected Object getCollectionInstance(TypeInfo info,
ClassLoader cl,
Class expected)
throws Throwable
info - the request typecl - the classloaderexpected - the expected class
Throwable - for any error
protected 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 | |||||||||