Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model.transformation.tree
Interface TargetNode

All Superinterfaces:
GroupNode, TransformationNode
All Known Implementing Classes:
TargetNodeImpl

public interface TargetNode
extends GroupNode

Target group or property

Author:
Simon Templer

Field Summary
static String ANNOTATION_RESULT
          Name of the value annotation.
static String ANNOTATION_RESULT_DEFINED
          Name of the value defined annotation.
 
Fields inherited from interface eu.esdihumboldt.hale.common.align.model.transformation.tree.GroupNode
ANNOTATION_CHILDREN
 
Method Summary
 Set<String> getAssignmentNames(CellNode assignment)
          Get the assignment names for the given cell.
 Set<CellNode> getAssignments()
          Get the assignment to this property
 ChildDefinition<?> getDefinition()
          Get the associated definition
 EntityDefinition getEntityDefinition()
          Get the full entity definition associated with the node.
 Object getResult()
          Get the result value of the node as assigned through a property transformation.
 boolean isDefined()
          Get if the node result is defined.
 void setDefined(boolean defined)
          Set the value of the result defined annotation.
 void setResult(Object value)
          Set the value of the result annotation.
 
Methods inherited from interface eu.esdihumboldt.hale.common.align.model.transformation.tree.GroupNode
addAnnotatedChild, getChildren, getParent
 
Methods inherited from interface eu.esdihumboldt.hale.common.align.model.transformation.tree.TransformationNode
accept, getAnnotation, hasAnnotations, reset, setAnnotation
 

Field Detail

ANNOTATION_RESULT_DEFINED

static final String ANNOTATION_RESULT_DEFINED
Name of the value defined annotation. It specifies if a value is defined for the source node.

See Also:
Constant Field Values

ANNOTATION_RESULT

static final String ANNOTATION_RESULT
Name of the value annotation. It specifies a concrete value for the node from an instance.

See Also:
Constant Field Values
Method Detail

getAssignments

Set<CellNode> getAssignments()
Get the assignment to this property

Returns:
the property assignments

getDefinition

ChildDefinition<?> getDefinition()
Get the associated definition

Returns:
the group or property definition

getEntityDefinition

EntityDefinition getEntityDefinition()
Get the full entity definition associated with the node.

Returns:
the entity definition

getAssignmentNames

Set<String> getAssignmentNames(CellNode assignment)
Get the assignment names for the given cell. These are the names of the cell entities the node is associated to.

Parameters:
assignment - the assigned cell
Returns:
the assignment names

isDefined

boolean isDefined()
Get if the node result is defined.

Returns:
the value of the result defined annotation, or false if it is not set
See Also:
ANNOTATION_RESULT_DEFINED

setDefined

void setDefined(boolean defined)
Set the value of the result defined annotation.

Parameters:
defined - if the node result is defined
See Also:
ANNOTATION_RESULT_DEFINED

getResult

Object getResult()
Get the result value of the node as assigned through a property transformation.

Returns:
the property value associated to the node, may be null
See Also:
ANNOTATION_RESULT

setResult

void setResult(Object value)
Set the value of the result annotation. When setting a result the value of the result defined annotation is set to true.

Parameters:
value - the result value of the node
See Also:
ANNOTATION_RESULT, ANNOTATION_RESULT_DEFINED

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d