|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.util.PseudoMap<String,DataType<? extends Object>>
org.dasein.attributes.DataTypeMap
public class DataTypeMap
Stores data types associated with an object. In general, most objects will have a class
that defines their attribute types. These types are stored in a DataTypeMap
for the defining class and the actual values are stored in an AttributeMap in the
owning object.
This class was originally developed for the Simplicis Content Management System in 2003 and moved into an Open Source library in 2006.
Last modified: $Date: 2009/02/02 19:27:05 $
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
DataTypeMap()
Constructs a new data type map. |
|
DataTypeMap(Map<String,? extends DataType<? extends Object>> map)
Constructs a new data type map with type information from the provided mapping. |
|
DataTypeMap(Map<String,? extends DataType<? extends Object>> map1,
Map<String,? extends DataType<? extends Object>> map2)
A constructor that essentially serves as a copying mechanism to allow you to add entries into a data type map. |
|
| Method Summary | |
|---|---|
boolean |
containsKey(Object attr)
|
boolean |
containsValue(Object val)
|
Set<Map.Entry<String,DataType<? extends Object>>> |
entrySet()
|
boolean |
equals(Object ob)
Compares this data type map to another object and checks for equality. |
DataType<? extends Object> |
get(Object attr)
|
int |
hashCode()
|
boolean |
isEmpty()
|
Set<String> |
keySet()
|
int |
size()
|
String |
toString()
|
Collection<DataType<? extends Object>> |
values()
|
| Methods inherited from class org.dasein.util.PseudoMap |
|---|
clear, put, putAll, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataTypeMap()
public DataTypeMap(Map<String,? extends DataType<? extends Object>> map)
map - the mapping from which to copy type information.
public DataTypeMap(Map<String,? extends DataType<? extends Object>> map1,
Map<String,? extends DataType<? extends Object>> map2)
map1 - the original mapping of data typesmap2 - new values to add onto or replace the originals| Method Detail |
|---|
public boolean containsKey(Object attr)
containsKey in interface Map<String,DataType<? extends Object>>attr - the attribute being checked
public boolean containsValue(Object val)
containsValue in interface Map<String,DataType<? extends Object>>val - the data type being checked
public Set<Map.Entry<String,DataType<? extends Object>>> entrySet()
entrySet in interface Map<String,DataType<? extends Object>>public boolean equals(Object ob)
equals in interface Map<String,DataType<? extends Object>>equals in class Objectob - the other object to check
public DataType<? extends Object> get(Object attr)
get in interface Map<String,DataType<? extends Object>>attr - the attribute being sought
public int hashCode()
hashCode in interface Map<String,DataType<? extends Object>>hashCode in class Objectpublic boolean isEmpty()
isEmpty in interface Map<String,DataType<? extends Object>>public Set<String> keySet()
keySet in interface Map<String,DataType<? extends Object>>public int size()
size in interface Map<String,DataType<? extends Object>>public Collection<DataType<? extends Object>> values()
values in interface Map<String,DataType<? extends Object>>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||