public class SimpleMetaDataMap extends java.util.HashMap<java.lang.String,java.lang.Object> implements MetaDataMap
Constructor and Description |
---|
SimpleMetaDataMap() |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.String name,
java.lang.Class<T> type)
Supports automatic meta data conversion based on the given type.
|
<T> T |
get(java.lang.String name,
T defaultValue)
Supports automatic meta data conversion, based on the type of the default
value.
|
public <T> T get(java.lang.String name, java.lang.Class<T> type)
get
in interface MetaDataMap
T
- the type of the classname
- The name of the meta data propertytype
- The class of the type to use for conversion.null
if there is no such property or it cannot be
converted to the given type.MetaDataMap.get(java.lang.String,
java.lang.Class)
public <T> T get(java.lang.String name, T defaultValue)
get
in interface MetaDataMap
T
- the type of the classname
- 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 is
null
and a property for the given name exists, it
is returned without conversion.null
if there is no such property or it cannot be
converted to the given type.MetaDataMap.get(java.lang.String,
java.lang.Object)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"