Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model.transformation.tree.impl
Class TransformationTreeImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.AbstractTransformationNode
      extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.AbstractGroupNode
          extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.TransformationTreeImpl
All Implemented Interfaces:
GroupNode, TransformationNode, TransformationTree

@Immutable
public class TransformationTreeImpl
extends AbstractGroupNode
implements TransformationTree

Default TransformationTree implementation

Author:
Simon Templer

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.common.align.model.transformation.tree.GroupNode
ANNOTATION_CHILDREN
 
Constructor Summary
TransformationTreeImpl(TypeDefinition type, Alignment alignment)
          Create a transformation tree
 
Method Summary
 void accept(TransformationNodeVisitor visitor)
          Accept a transformation node visitor.
 List<TargetNode> getFixedChildren()
          Get the fixed target node children, i.e.
 Collection<SourceNode> getRootSourceNodes()
          Gets all root source nodes.
 Collection<SourceNode> getRootSourceNodes(TypeDefinition type)
          Gets all root source nodes of the given type.
 SourceNode getSourceNode(TypeEntityDefinition type)
          Get the source node representing the given type.
 TypeDefinition getType()
          Get the associated type definition
 
Methods inherited from class eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.AbstractGroupNode
addAnnotatedChild, getChildren, getParent
 
Methods inherited from class eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.AbstractTransformationNode
getAnnotation, hasAnnotations, reset, setAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
getAnnotation, hasAnnotations, reset, setAnnotation
 

Constructor Detail

TransformationTreeImpl

public TransformationTreeImpl(TypeDefinition type,
                              Alignment alignment)
Create a transformation tree

Parameters:
type - the type definition serving as root
alignment - the alignment holding the cells
Method Detail

accept

public void accept(TransformationNodeVisitor visitor)
Description copied from interface: TransformationNode
Accept a transformation node visitor.

Specified by:
accept in interface TransformationNode
Parameters:
visitor - the visitor
See Also:
TransformationNode.accept(TransformationNodeVisitor)

getSourceNode

public SourceNode getSourceNode(TypeEntityDefinition type)
Description copied from interface: TransformationTree
Get the source node representing the given type.

Specified by:
getSourceNode in interface TransformationTree
Parameters:
type - the type entity definition
Returns:
the source node associated to the type or null
See Also:
TransformationTree.getSourceNode(TypeEntityDefinition)

getFixedChildren

public List<TargetNode> getFixedChildren()
Description copied from class: AbstractGroupNode
Get the fixed target node children, i.e. those that are not represented through an annotation.

Specified by:
getFixedChildren in class AbstractGroupNode
Returns:
the list of fixed child target nodes
See Also:
AbstractGroupNode.getFixedChildren()

getType

public TypeDefinition getType()
Description copied from interface: TransformationTree
Get the associated type definition

Specified by:
getType in interface TransformationTree
Returns:
the type definition
See Also:
TransformationTree.getType()

getRootSourceNodes

public Collection<SourceNode> getRootSourceNodes(TypeDefinition type)
Description copied from interface: TransformationTree
Gets all root source nodes of the given type.

Specified by:
getRootSourceNodes in interface TransformationTree
Parameters:
type - the type definition
Returns:
root source nodes associated to the type
See Also:
TransformationTree.getRootSourceNodes(TypeDefinition)

getRootSourceNodes

public Collection<SourceNode> getRootSourceNodes()
Description copied from interface: TransformationTree
Gets all root source nodes.

Specified by:
getRootSourceNodes in interface TransformationTree
Returns:
all root source nodes
See Also:
TransformationTree.getRootSourceNodes()

Humboldt Alignment Editor 2.5.0

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