|
||||||||||
| 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 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 void clear()
clear in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Set entrySet()
entrySet in interface Mappublic Object get(Object key)
get in interface Mappublic boolean isEmpty()
isEmpty in interface Mappublic Set keySet()
keySet in interface Map
public Object put(Object key,
Object value)
put in interface Mappublic void putAll(Map t)
putAll in interface Mappublic Object remove(Object key)
remove in interface Mappublic int size()
size in interface Mappublic Collection values()
values in interface Mappublic Iterator getChildren()
MetaDataVisitorNode
getChildren in interface MetaDataVisitorNodegetChildren in class AbstractValueMetaDatapublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class AbstractTypeMetaData
protected Object getDefaultMapInstance()
throws Throwable
Throwable - for any error
protected Object getMapInstance(TypeInfo info,
ClassLoader cl,
Class expected)
throws Throwable
info - the request typecl - the classloaderexpected - the expected class
Throwable - for any error
protected ClassInfo getKeyClassInfo(ClassLoader cl)
throws Throwable
cl - the classloader
Throwable - for any error
protected 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 | |||||||||