|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceNode
Represents a source type, group or property
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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 |
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. |
Methods inherited from interface eu.esdihumboldt.hale.common.align.model.transformation.tree.TransformationNode |
---|
accept, getAnnotation, hasAnnotations, reset, setAnnotation |
Field Detail |
---|
static final String ANNOTATION_VALUE_DEFINED
static final String ANNOTATION_VALUE
static final String ANNOTATION_CHILDREN
static final String ANNOTATION_LEFTOVERS
static final String ANNOTATION_RELATIONS
static final String ANNOTATION_PARENT
Method Detail |
---|
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 included
void 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
.
value
- the value of the node in the context of a specific source
instanceANNOTATION_VALUE
,
ANNOTATION_VALUE_DEFINED
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 included
void setAnnotatedParent(SourceNode parent)
parent
- the annotated parentSourceNode getAnnotatedParent()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |