public interface SourceNode extends TransformationNode
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATION_ALL_VALUES
Name of the all values annotation.
|
static String |
ANNOTATION_CHILDREN
Name of the children annotation.
|
static String |
ANNOTATION_LEFTOVERS
Name of the leftovers annotation.
|
static String |
ANNOTATION_PARENT
Name of the parent annotation.
|
static String |
ANNOTATION_RELATIONS
Name of the relations annotation.
|
static String |
ANNOTATION_VALUE
Name of the value annotation.
|
static String |
ANNOTATION_VALUE_DEFINED
Name of the value defined annotation.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotatedChild(SourceNode child)
Add a child node as annotation.
|
void |
addAnnotatedRelation(CellNode relation)
Add a cell node as annotated relation.
|
void |
addChild(SourceNode child)
Add a child node.
|
void |
addRelation(CellNode cellNode)
Add a relation.
|
Object[] |
getAllValues()
Get all values of the node in the context of a specific source instance.
|
SourceNode |
getAnnotatedParent()
Get the annotated parent.
|
Collection<SourceNode> |
getChildren(boolean includeAnnotated)
Get the node's children.
|
TransformationContext |
getContext()
Get the associated transformation context.
|
Definition<?> |
getDefinition()
Get the associated definition
|
EntityDefinition |
getEntityDefinition()
Get the full entity definition associated with the node.
|
Leftovers |
getLeftovers()
Get the left over values associated to the node's entity, but not
represented by the node.
|
SourceNode |
getParent()
Get the group or property's parent
|
Collection<CellNode> |
getRelations(boolean includeAnnotated)
Get the relations associated to the source node.
|
Object |
getValue()
Get the value of the node in the context of a specific source instance.
|
boolean |
isDefined()
Get if the source node value is defined.
|
void |
setAllValues(Object... values)
Set all original values associated to that node.
|
void |
setAnnotatedParent(SourceNode parent)
Sets an annotated parent.
|
void |
setContext(TransformationContext context)
Set the transformation context.
|
void |
setDefined(boolean defined)
Set the value of the defined annotation.
|
void |
setLeftovers(Leftovers leftovers)
Set the left over values associated to the node's entity, but not
represented by the node.
|
void |
setValue(Object value)
Set the value of the value annotation.
|
accept, getAnnotation, hasAnnotations, reset, setAnnotation
static final String ANNOTATION_VALUE_DEFINED
static final String ANNOTATION_VALUE
static final String ANNOTATION_ALL_VALUES
static final String ANNOTATION_CHILDREN
static final String ANNOTATION_LEFTOVERS
static final String ANNOTATION_RELATIONS
static final String ANNOTATION_PARENT
Definition<?> getDefinition()
SourceNode getParent()
null
EntityDefinition getEntityDefinition()
void addChild(SourceNode child)
child
- the child source nodevoid addAnnotatedChild(SourceNode child)
child
- the child node to addCollection<SourceNode> getChildren(boolean includeAnnotated)
includeAnnotated
- if annotated children should be includedvoid setContext(TransformationContext context)
context
- the transformation contextTransformationContext getContext()
null
void setLeftovers(Leftovers leftovers)
leftovers
- the leftoversLeftovers getLeftovers()
null
boolean isDefined()
false
if it
is not setANNOTATION_VALUE_DEFINED
void setDefined(boolean defined)
defined
- if the node value is definedANNOTATION_VALUE_DEFINED
Object getValue()
null
ANNOTATION_VALUE
void setValue(Object value)
true
. Will also set the all
values annotation if it is not set yet.value
- the value of the node in the context of a specific source
instanceANNOTATION_VALUE
,
ANNOTATION_VALUE_DEFINED
,
ANNOTATION_ALL_VALUES
void setAllValues(Object... values)
values
- all values of the node in the context of a specific source
instanceANNOTATION_ALL_VALUES
Object[] getAllValues()
null
ANNOTATION_ALL_VALUES
void addRelation(CellNode cellNode)
cellNode
- the cell node representing the relationvoid addAnnotatedRelation(CellNode relation)
relation
- the cell node representing the relationCollection<CellNode> getRelations(boolean includeAnnotated)
includeAnnotated
- if annotated relations should be includedvoid setAnnotatedParent(SourceNode parent)
parent
- the annotated parentSourceNode getAnnotatedParent()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a