|
||||||||||
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<MetaDataVisitorNode> |
collection
The collection |
protected String |
elementType
The element type |
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData |
---|
beanName, configurator, context, propertyName, type |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Fields inherited from interface org.jboss.beans.metadata.plugins.TypeProvider |
---|
ERROR_MSG |
Constructor Summary | |
---|---|
AbstractCollectionMetaData()
Create a new collection value |
Method Summary | ||
---|---|---|
boolean |
add(MetaDataVisitorNode o)
|
|
boolean |
addAll(Collection<? extends MetaDataVisitorNode> c)
|
|
void |
clear()
|
|
AbstractCollectionMetaData |
clone()
Clone the object |
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
Iterator<? extends MetaDataVisitorNode> |
getChildren()
Return the child nodes |
|
protected Collection<Object> |
getDefaultInstance()
Create the default collection instance |
|
protected org.jboss.reflect.spi.TypeInfo |
getElementClassInfo(ClassLoader cl,
org.jboss.reflect.spi.TypeInfo info)
Get the class info for the element type |
|
String |
getElementType()
Get the element type |
|
org.jboss.reflect.spi.TypeInfo |
getType(MetaDataVisitor visitor,
MetaDataVisitorNode previous)
Get the injectee type info. |
|
Object |
getValue(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl)
Get the value. |
|
boolean |
isEmpty()
|
|
Iterator<MetaDataVisitorNode> |
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()
|
|
|
toArray(T[] a)
|
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData |
---|
checkResult, createInstance, getClass, getClassInfo, getClassInfo, getType, getTypeInfo, getTypeInfo, getTypeInstance, getTypeInstance, initialVisit, preinstantiatedLookup, preparePreinstantiatedLookup, setConfigurator, setType |
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData |
---|
describeVisit, getUnderlyingValue, getValue, isUseJMXObjectNameFix, setValue, toShortString |
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, 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 |
---|
toShortString |
Field Detail |
---|
protected ArrayList<MetaDataVisitorNode> collection
protected String elementType
Constructor Detail |
---|
public AbstractCollectionMetaData()
Method Detail |
---|
public String getElementType()
public void setElementType(String elementType)
elementType
- the element typepublic Object getValue(org.jboss.reflect.spi.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 org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor, MetaDataVisitorNode previous) throws Throwable
TypeProvider
getType
in interface TypeProvider
getType
in class AbstractValueMetaData
visitor
- meda data visitorprevious
- previous node in the stack
Throwable
- if could not determine classpublic boolean add(MetaDataVisitorNode o)
add
in interface Collection<MetaDataVisitorNode>
public boolean addAll(Collection<? extends MetaDataVisitorNode> c)
addAll
in interface Collection<MetaDataVisitorNode>
public void clear()
clear
in interface Collection<MetaDataVisitorNode>
public boolean contains(Object o)
contains
in interface Collection<MetaDataVisitorNode>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<MetaDataVisitorNode>
public boolean isEmpty()
isEmpty
in interface Collection<MetaDataVisitorNode>
public Iterator<MetaDataVisitorNode> iterator()
iterator
in interface Iterable<MetaDataVisitorNode>
iterator
in interface Collection<MetaDataVisitorNode>
public boolean remove(Object o)
remove
in interface Collection<MetaDataVisitorNode>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<MetaDataVisitorNode>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<MetaDataVisitorNode>
public int size()
size
in interface Collection<MetaDataVisitorNode>
public Object[] toArray()
toArray
in interface Collection<MetaDataVisitorNode>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<MetaDataVisitorNode>
public Iterator<? extends MetaDataVisitorNode> getChildren()
MetaDataVisitorNode
getChildren
in interface MetaDataVisitorNode
getChildren
in class AbstractValueMetaData
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractTypeMetaData
protected Collection<Object> getDefaultInstance()
getDefaultInstance
in class AbstractTypeMetaData
protected org.jboss.reflect.spi.TypeInfo getElementClassInfo(ClassLoader cl, org.jboss.reflect.spi.TypeInfo info) throws Throwable
cl
- the classloaderinfo
- the type info
Throwable
- for any errorpublic AbstractCollectionMetaData clone()
MetaDataVisitorNode
clone
in interface MetaDataVisitorNode
clone
in interface org.jboss.util.JBossInterface
clone
in class AbstractValueMetaData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |