Package com.day.cq.workflow.metadata
Interface MetaDataMap
- All Known Implementing Classes:
SimpleMetaDataMap
A value map for generic access to meta data values.
- Since:
- 5.4
-
Nested Class Summary
-
Method Summary
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
get
Get a meta data property and make an attempt to convert it into the given type.- Parameters:
name- The name of the meta data propertytype- The class of the type to use for conversion.- Returns:
- The value of the property converted to type T or
nullif there is no such property or it cannot be converted to the given type.
-
get
Get a meta data property and make an attempt to convert it into the given type.- Parameters:
name- The name of the meta data propertydefaultValue- A default value to use in case the property does not exist or cannot be converted. The type to convert to is determined by the type of the default value. If the default value isnulland a property for the given name exists, it is returned without conversion.- Returns:
- The value of the property converted to type T or
nullif there is no such property or it cannot be converted to the given type.
-