Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor
Class InstanceVisitor

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractTransformationNodeVisitor
      extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractSourceToTargetVisitor
          extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.InstanceVisitor
All Implemented Interfaces:
TransformationNodeVisitor

public class InstanceVisitor
extends AbstractSourceToTargetVisitor

Visitor that annotates a transformation tree with the values of properties in a source instance.

Author:
Simon Templer

Constructor Summary
InstanceVisitor(FamilyInstance instance, TransformationTree tree)
          Creates an instance visitor.
 
Method Summary
 boolean includeAnnotatedNodes()
          Specifies if annotated nodes should be included in the traversal.
 boolean visit(CellNode cell)
          Visit a cell node.
 boolean visit(SourceNode source)
          Visit a source node.
 
Methods inherited from class eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractSourceToTargetVisitor
isFromTargetToSource
 
Methods inherited from class eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractTransformationNodeVisitor
leave, leave, leave, leave, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceVisitor

public InstanceVisitor(FamilyInstance instance,
                       TransformationTree tree)
Creates an instance visitor.

Parameters:
instance - the instance, may be null
tree - the transformation tree, may be null if instance is null
Method Detail

visit

public boolean visit(CellNode cell)
Description copied from interface: TransformationNodeVisitor
Visit a cell node.

Specified by:
visit in interface TransformationNodeVisitor
Overrides:
visit in class AbstractTransformationNodeVisitor
Parameters:
cell - the cell node
Returns:
if the visitor is to be applied to any further nodes down the path
See Also:
AbstractTransformationNodeVisitor.visit(CellNode)

visit

public boolean visit(SourceNode source)
Description copied from interface: TransformationNodeVisitor
Visit a source node.

Specified by:
visit in interface TransformationNodeVisitor
Overrides:
visit in class AbstractTransformationNodeVisitor
Parameters:
source - the source node
Returns:
if the visitor is to be applied to any further nodes down the path
See Also:
AbstractTransformationNodeVisitor.visit(SourceNode)

includeAnnotatedNodes

public boolean includeAnnotatedNodes()
Description copied from interface: TransformationNodeVisitor
Specifies if annotated nodes should be included in the traversal.

Returns:
if nodes that are only present as annotations should be visited
See Also:
TransformationNodeVisitor.includeAnnotatedNodes()

Humboldt Alignment Editor 2.5.0

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