T
- Type of the root objectpublic class DefinitionAndValue<T> extends Object
Modifier and Type | Field and Description |
---|---|
private ModelItem |
_definition |
private DefinitionAndValue<T> |
_parent |
private T |
_root |
private Object |
_value |
Constructor and Description |
---|
DefinitionAndValue(T root,
ModelItem definition,
Object value)
Creates a definition and value pair
|
DefinitionAndValue(T root,
ModelItem definition,
Object value,
DefinitionAndValue<T> parent)
Creates a definition and value pair
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
extractValues(Map<String,DefinitionAndValue> definitionAndValues)
extract a map of values from a map of DefinitionAndValue
|
ModelItem |
getDefinition()
Retrieves the definition
|
DefinitionAndValue<T> |
getParent()
Retrieves the parent of the definition and value pair
|
T |
getRoot()
Retrieves the root object of this definition and value pair
|
Object |
getValue()
Retrieves the value
|
private ModelItem _definition
private DefinitionAndValue<T> _parent
public DefinitionAndValue(T root, ModelItem definition, Object value)
root
- the root object of this definition and value pairdefinition
- the definitionvalue
- the valuepublic DefinitionAndValue(T root, ModelItem definition, Object value, DefinitionAndValue<T> parent)
root
- the root object of this definition and value pairdefinition
- the definitionvalue
- the valueparent
- the parent of the definition and value pairpublic T getRoot()
public ModelItem getDefinition()
public DefinitionAndValue<T> getParent()
public static Map<String,Object> extractValues(Map<String,DefinitionAndValue> definitionAndValues)
definitionAndValues
- a map containing definition and values