Package mc.core.domain.base.map
Class DataMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,V>
mc.core.system.util.map.ObjectConvertMap<Object>
mc.core.system.util.map.ObjectMap
mc.core.domain.base.map.DataMap
- Direct Known Subclasses:
EntityDataMap
public class DataMap
extends mc.core.system.util.map.ObjectMap
Sorted map to provide a general container for entity data. The names of entity properties are the keys (String,
IEntityField can also be used to set values), the value of the property is the map entry value (Object). Referenced
entities will be represented by nested maps or list of maps.
Additionally to the entity data itself a list of parameters (key-value pairs) can be specified, which are again held in an ObjectMap.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmc.core.system.util.map.ObjectMapmc.core.system.util.map.ObjectMapgetParameter(String property) mc.core.system.util.map.ObjectMapvoidsetParameter(Object parameterKey, Object value) parameter used as attributes for root element in XML or distinct flags in FlatFile.setParameter(String propertyKey, Object parameterKey, Object value) parameter used as attributes for property element in XML or distinct flags in FlatFile.setResourceText(Object resourceKey, String text, Object localeKey) set text for a resource version giving text and localeMethods inherited from class mc.core.system.util.map.ObjectMap
putAll, toStringMethods inherited from class mc.core.system.util.map.ObjectConvertMap
containsKey, get, get, get, getBoolean, getBoolean, getBooleanList, getBooleanValue, getCalendar, getCalendar, getClass, getClass, getDouble, getDouble, getDoubleList, getDoubleValue, getEnum, getEnum, getInteger, getInteger, getIntegerList, getIntValue, getList, getList, getLong, getLong, getLongList, getLongValue, getMap, getObjectMap, getString, getString, getStringList, iterator, main, removeMethods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, getOrDefault, keySet, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, size
-
Constructor Details
-
DataMap
public DataMap() -
DataMap
public DataMap(int initialCapacity) -
DataMap
-
DataMap
-
-
Method Details
-
set
- Overrides:
setin classmc.core.system.util.map.ObjectMap
-
putAll
-
setParameter
parameter used as attributes for root element in XML or distinct flags in FlatFile.
example if this dataMap represents a Node:
dataMap.setParameter( "type", "NODE_TYPE_ART");
result:
<node type="NODE_TYPE_ART">...</node> -
setParameter
parameter used as attributes for property element in XML or distinct flags in FlatFile.
example if this dataMap represents a Node:
dataMap.setParameter( "name", "locale", "de");
result:
<node><name locale="de">...</name></node> -
getParameter
public mc.core.system.util.map.ObjectMap getParameter() -
getParameter
-
getProperties
public mc.core.system.util.map.ObjectMap getProperties() -
getIdList
-
setResourceText
set text for a resource version giving text and locale- Parameters:
resourceKey- key for resource field or propertytext-localeKey-- Returns:
- this
-