Package org.eclnt.ccee.dyndata
Class DynDataMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> ICCEEConstants
Instance of dynamic data.
Dynamic data is a map with reference to a
The map may contain other DynDataMap (1:1) defintions and may contain lists of DyanDataMap definitions (1:n).
The
Dynamic data is a map with reference to a
DynDataDefinition. The
definition is linked by its id.The map may contain other DynDataMap (1:1) defintions and may contain lists of DyanDataMap definitions (1:n).
The
get(Object) method can be used either in simpley way, passing
the key that is stored inside of the instance. Or you can pass complete
expressions to access sub-objects or to execute formulas on values. DynDataMap objects are heavily used within the creation of PDF
documents within the eclnt_jsrxml PDF generation framework.- 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> -
Field Summary
FieldsFields inherited from interface org.eclnt.ccee.ICCEEConstants
AND, ASC, AVG, BETWEEN, BRC, BRO, COUNT, DEFAULT_CONTEXT, DESC, FUNCTIONRESULT, GREATER, GREATEREQUAL, IN, IS, ISNOT, LIKE, LL_DBG, LL_ERR, LL_INF, LL_WAR, LOWER, LOWEREQUAL, MAX, MIN, NULL, OR, ORDERBY, QPFUNCTION_LOWER, QPFUNCTION_UPPER, SUM -
Constructor Summary
ConstructorsConstructorDescriptionDynDataMap(DynDataReaderContext ddrContext, String dataDefinitionId, DynDataMap parentDataMap) The preferred way of creating DynDataMap instances is to use the classDynDataReader. -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue(String name) getContent(Object key) Direct access into the map.Access from outside can be done in the way: get("data").get("xxx").get("yyy").getExpressionValue(String expression) Resolve value of expression "#{xxx.yyy.zzz}.getObjectMap(String dataDefinitionId) getObjectMapList(String dataDefinitionId) voidsetParent(DynDataMap parent) toString(int level) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
KEY_DATA
- See Also:
-
-
Constructor Details
-
DynDataMap
public DynDataMap(DynDataReaderContext ddrContext, String dataDefinitionId, DynDataMap parentDataMap) The preferred way of creating DynDataMap instances is to use the classDynDataReader. This class implicitly uses this constructor.
-
-
Method Details
-
getParent
-
setParent
-
getDataDefinitionId
-
getCurrentDataRequestEntryPoint
Access from outside can be done in the way: get("data").get("xxx").get("yyy"). In this case the DynDataMap receiving the get("data") is the entry point. -
get
-
getContent
Direct access into the map. While theget(Object)does some interpretation of the key, this method returns the data value that is contained in the map. This is the "real", direct access into the map. -
getAttributeValue
-
getObjectMap
-
getObjectMapList
-
getAttributeValueForChainOfKeys
-
getExpressionValue
Resolve value of expression "#{xxx.yyy.zzz}. Null is returned in case of malformed expressions. -
toString
-