Class DynDataMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.eclnt.ccee.dyndata.DynDataMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, ICCEEConstants

public class DynDataMap extends HashMap<String,Object> implements ICCEEConstants
Instance of dynamic data.

Dynamic data is a map with reference to a DynDataDefinition. The definition is linked by its id.
See Also:
  • Field Details

  • Constructor Details

    • DynDataMap

      public DynDataMap(DynDataReaderContext ddrContext, String dataDefinitionId, DynDataMap parentDataMap)
      The preferred way of creating DynDataMap instances is to use the class DynDataReader. This class implicitly uses this constructor.
  • Method Details

    • getParent

      public DynDataMap getParent()
    • setParent

      public void setParent(DynDataMap parent)
    • getDataDefinitionId

      public String getDataDefinitionId()
    • getCurrentDataRequestEntryPoint

      public DynDataMap 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

      public Object get(Object key)
      Specified by:
      get in interface Map<String,Object>
      Overrides:
      get in class HashMap<String,Object>
    • getContent

      public Object getContent(Object key)
      Direct access into the map. While the get(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

      public Object getAttributeValue(String name)
    • getObjectMap

      public DynDataMap getObjectMap(String dataDefinitionId)
    • getObjectMapList

      public List<DynDataMap> getObjectMapList(String dataDefinitionId)
    • getAttributeValueForChainOfKeys

      public Object getAttributeValueForChainOfKeys(String[] keys)
    • getExpressionValue

      public Object getExpressionValue(String expression)
      Resolve value of expression "#{xxx.yyy.zzz}. Null is returned in case of malformed expressions.
    • toString

      public String toString(int level)