Humboldt Alignment Editor 2.5.0

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

All Known Implementing Classes:
AbstractSourceToTargetVisitor, AbstractTargetToSourceVisitor, AbstractTransformationNodeVisitor, CellNodeValidator, DuplicationVisitor, FunctionExecutor, InstanceVisitor, ResetVisitor

public interface TransformationNodeVisitor

Interface for transformation tree visitors.

Author:
Simon Templer

Method Summary
 boolean includeAnnotatedNodes()
          Specifies if annotated nodes should be included in the traversal.
 boolean isFromTargetToSource()
          Specifies the traversal direction.
 void leave(CellNode cell)
          Called after a cell node has been visited.
 void leave(SourceNode source)
          Called after a source node has been visited.
 void leave(TargetNode target)
          Called after a target node has been visited.
 void leave(TransformationTree root)
          Called after a transformation tree root has been visited.
 boolean visit(CellNode cell)
          Visit a cell node.
 boolean visit(SourceNode source)
          Visit a source node.
 boolean visit(TargetNode target)
          Visit a target node.
 boolean visit(TransformationTree root)
          Visit a transformation tree root.
 

Method Detail

visit

boolean visit(TransformationTree root)
Visit a transformation tree root.

Parameters:
root - the transformation tree root
Returns:
if the visitor is to be applied to any further nodes down the path

leave

void leave(TransformationTree root)
Called after a transformation tree root has been visited.

Parameters:
root - the transformation tree root

visit

boolean visit(TargetNode target)
Visit a target node.

Parameters:
target - the target node
Returns:
if the visitor is to be applied to any further nodes down the path

leave

void leave(TargetNode target)
Called after a target node has been visited.

Parameters:
target - the target node

visit

boolean visit(CellNode cell)
Visit a cell node.

Parameters:
cell - the cell node
Returns:
if the visitor is to be applied to any further nodes down the path

leave

void leave(CellNode cell)
Called after a cell node has been visited.

Parameters:
cell - the cell node

visit

boolean visit(SourceNode source)
Visit a source node.

Parameters:
source - the source node
Returns:
if the visitor is to be applied to any further nodes down the path

leave

void leave(SourceNode source)
Called after a source node has been visited.

Parameters:
source - the source node

isFromTargetToSource

boolean isFromTargetToSource()
Specifies the traversal direction.

Returns:
true if the tree is to be traversed from targets to sources, false if the other way round

includeAnnotatedNodes

boolean includeAnnotatedNodes()
Specifies if annotated nodes should be included in the traversal.

Returns:
if nodes that are only present as annotations should be visited

Humboldt Alignment Editor 2.5.0

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