|
||||||||||
| 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.AbstractMapMetaData
public class AbstractMapMetaData
Map metadata.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary | |
|---|---|
protected String |
keyType
The key type |
protected String |
valueType
The value 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 | |
|---|---|
AbstractMapMetaData()
Create a new map value |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<MetaDataVisitorNode,MetaDataVisitorNode>> |
entrySet()
|
MetaDataVisitorNode |
get(Object key)
|
Iterator<? extends MetaDataVisitorNode> |
getChildren()
Return the child nodes |
protected Object |
getDefaultInstance()
Create the default map instance |
protected Class<? extends Map> |
getExpectedClass()
|
protected org.jboss.reflect.spi.ClassInfo |
getKeyClassInfo(ClassLoader cl)
Get the class info for the key type |
String |
getKeyType()
Get the key 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. |
protected org.jboss.reflect.spi.ClassInfo |
getValueClassInfo(ClassLoader cl)
Get the class info for the value type |
String |
getValueType()
Get the value type |
boolean |
isEmpty()
|
Set<MetaDataVisitorNode> |
keySet()
|
MetaDataVisitorNode |
put(MetaDataVisitorNode key,
MetaDataVisitorNode value)
|
void |
putAll(Map<? extends MetaDataVisitorNode,? extends MetaDataVisitorNode> t)
|
MetaDataVisitorNode |
remove(Object key)
|
void |
setKeyType(String keyType)
Set the key type |
void |
setValueType(String valueType)
Set the value type |
int |
size()
|
Collection<MetaDataVisitorNode> |
values()
|
| Methods inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData |
|---|
checkResult, createInstance, getClass, getClassInfo, getClassInfo, getType, getTypeInstance, initialVisit, preinstantiatedLookup, preparePreinstantiatedLookup, setConfigurator, setType, toString |
| Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData |
|---|
describeVisit, 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.Map |
|---|
equals, hashCode |
| Methods inherited from interface org.jboss.util.JBossInterface |
|---|
clone, toShortString |
| Field Detail |
|---|
protected String keyType
protected String valueType
| Constructor Detail |
|---|
public AbstractMapMetaData()
| Method Detail |
|---|
public String getKeyType()
public void setKeyType(String keyType)
keyType - the key typepublic String getValueType()
public void setValueType(String valueType)
valueType - the value type
public Object getValue(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl)
throws Throwable
ValueMetaData
getValue in interface ValueMetaDatagetValue in class AbstractValueMetaDatainfo - the type infocl - the classloader
Throwable - for any errorpublic void clear()
clear in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public boolean containsKey(Object key)
containsKey in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public boolean containsValue(Object value)
containsValue in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public Set<Map.Entry<MetaDataVisitorNode,MetaDataVisitorNode>> entrySet()
entrySet in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public MetaDataVisitorNode get(Object key)
get in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public boolean isEmpty()
isEmpty in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public Set<MetaDataVisitorNode> keySet()
keySet in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>
public MetaDataVisitorNode put(MetaDataVisitorNode key,
MetaDataVisitorNode value)
put in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public void putAll(Map<? extends MetaDataVisitorNode,? extends MetaDataVisitorNode> t)
putAll in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public MetaDataVisitorNode remove(Object key)
remove in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public int size()
size in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public Collection<MetaDataVisitorNode> values()
values in interface Map<MetaDataVisitorNode,MetaDataVisitorNode>public Iterator<? extends MetaDataVisitorNode> getChildren()
MetaDataVisitorNode
getChildren in interface MetaDataVisitorNodegetChildren in class AbstractValueMetaData
public org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor,
MetaDataVisitorNode previous)
throws Throwable
TypeProvider
getType in interface TypeProvidergetType in class AbstractValueMetaDatavisitor - meda data visitorprevious - previous node in the stack
Throwable - if could not determine classprotected Object getDefaultInstance()
getDefaultInstance in class AbstractTypeMetaDataprotected Class<? extends Map> getExpectedClass()
protected org.jboss.reflect.spi.ClassInfo getKeyClassInfo(ClassLoader cl)
throws Throwable
cl - the classloader
Throwable - for any error
protected org.jboss.reflect.spi.ClassInfo getValueClassInfo(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 | |||||||||