public interface DataChannelMetaData
Storage for all kind of meta data that is not required for runtime.
Currently used by Modeler and cli tools (e.g. Maven, Ant and Gradle) to store project extra data.
Usage:
// attach custom information to data map metaData.add(dataMap, myObject); // read data MyObject obj = metaData.get(dataMap, MyObject.class);
Modifier and Type | Method and Description |
---|---|
void |
add(ConfigurationNode key,
Object value)
Store data for object.
|
<T> T |
get(ConfigurationNode key,
Class<T> type)
Get meta data for object
|
<T> T |
remove(ConfigurationNode key,
Class<T> type) |
void add(ConfigurationNode key, Object value)
key
- object for which we want to store datavalue
- data to store<T> T get(ConfigurationNode key, Class<T> type)
T
- meta data typekey
- object for wich we want meta datatype
- meta data type classnull
if no data available<T> T remove(ConfigurationNode key, Class<T> type)
T
- meta data typekey
- object for wich we want meta datatype
- meta data type classnull
if no can't removeCopyright © 2001–2019 Apache Cayenne. All rights reserved.