|
||||||||||
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 |
---|
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 | |
---|---|
AbstractMapMetaData()
Create a new map value |
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
Object |
get(Object key)
|
Iterator |
getChildren()
Return the child nodes |
protected Object |
getDefaultMapInstance()
Create the default map instance |
protected ClassInfo |
getKeyClassInfo(ClassLoader cl)
Get the class info for the key type |
String |
getKeyType()
Get the key type |
protected Object |
getMapInstance(TypeInfo info,
ClassLoader cl,
Class expected)
Create the map instance |
Object |
getValue(TypeInfo info,
ClassLoader cl)
Get the value. |
protected ClassInfo |
getValueClassInfo(ClassLoader cl)
Get the class info for the value type |
String |
getValueType()
Get the value type |
boolean |
isEmpty()
|
Set |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
void |
setKeyType(String keyType)
Set the key type |
void |
setValueType(String valueType)
Set the value type |
int |
size()
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Collection |
values()
|
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.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 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 void clear()
clear
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public Object get(Object key)
get
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public Set keySet()
keySet
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public void putAll(Map t)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public int size()
size
in interface Map
public Collection values()
values
in interface Map
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 getDefaultMapInstance() throws Throwable
Throwable
- for any errorprotected Object getMapInstance(TypeInfo info, ClassLoader cl, Class expected) throws Throwable
info
- the request typecl
- the classloaderexpected
- the expected class
Throwable
- for any errorprotected ClassInfo getKeyClassInfo(ClassLoader cl) throws Throwable
cl
- the classloader
Throwable
- for any errorprotected 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 |