T
- Type of the root objectpublic class CompositeDefinitionAndValue<T> extends DefinitionAndValue<T>
Modifier and Type | Field and Description |
---|---|
private List<DefinitionAndValue> |
_children |
private CompositeDefinition |
_compositeDefinition |
Constructor and Description |
---|
CompositeDefinitionAndValue(T root,
ModelItem definition,
Object value,
DefinitionAndValue... children)
Creates a composite definition and value pair
|
CompositeDefinitionAndValue(T root,
ModelItem definition,
Object value,
DefinitionAndValue<T> parent,
DefinitionAndValue... children)
Creates a composite definition and value pair
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(DefinitionAndValue definitionAndValue)
Add a definition and value pair as a child of this composite
|
List<DefinitionAndValue> |
getChildren()
Retrieves the children definition and value pairs of this composite
|
ModelItemGroup |
getDefinition()
Retrieves the definition
|
extractValues, getParent, getRoot, getValue
private CompositeDefinition _compositeDefinition
private List<DefinitionAndValue> _children
public CompositeDefinitionAndValue(T root, ModelItem definition, Object value, DefinitionAndValue... children)
root
- the root object of this definition and value pairdefinition
- the definitionvalue
- the valuechildren
- the children of the definition and value pairpublic CompositeDefinitionAndValue(T root, ModelItem definition, Object value, DefinitionAndValue<T> parent, DefinitionAndValue... children)
root
- the root object of this definition and value pairdefinition
- the definitionvalue
- the valueparent
- the parent of the definition and value pairchildren
- the children of the definition and value pairpublic ModelItemGroup getDefinition()
DefinitionAndValue
getDefinition
in class DefinitionAndValue<T>
public List<DefinitionAndValue> getChildren()
public void addChild(DefinitionAndValue definitionAndValue)
definitionAndValue
- the definition and value pair to add as child