@Immutable public class TransformationTreeImpl extends AbstractGroupNode implements TransformationTree
TransformationTree
implementationANNOTATION_CHILDREN
Constructor and Description |
---|
TransformationTreeImpl(Alignment alignment,
Cell typeCell)
Create a transformation tree based on a type cell.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(TransformationNodeVisitor visitor)
Accept a transformation node visitor.
|
List<TargetNode> |
getFixedChildren()
Get the fixed target node children, i.e.
|
protected Collection<? extends Cell> |
getRelevantPropertyCells(Alignment alignment,
Cell typeCell)
Get the property cells relevant for the transformation tree from the
given alignment.
|
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
|
Cell |
getTypeCell()
Get the associated type cell
|
addAnnotatedChild, getChildren, getParent
getAnnotation, hasAnnotations, reset, setAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAnnotatedChild, getChildren, getParent
getAnnotation, hasAnnotations, reset, setAnnotation
protected Collection<? extends Cell> getRelevantPropertyCells(Alignment alignment, Cell typeCell)
alignment
- the alignmenttypeCell
- the type cell typepublic void accept(TransformationNodeVisitor visitor)
TransformationNode
accept
in interface TransformationNode
visitor
- the visitorTransformationNode.accept(TransformationNodeVisitor)
public SourceNode getSourceNode(TypeEntityDefinition type)
TransformationTree
getSourceNode
in interface TransformationTree
type
- the type entity definitionnull
TransformationTree.getSourceNode(TypeEntityDefinition)
public List<TargetNode> getFixedChildren()
AbstractGroupNode
getFixedChildren
in class AbstractGroupNode
AbstractGroupNode.getFixedChildren()
public TypeDefinition getType()
TransformationTree
getType
in interface TransformationTree
TransformationTree.getType()
public Collection<SourceNode> getRootSourceNodes(TypeDefinition type)
TransformationTree
getRootSourceNodes
in interface TransformationTree
type
- the type definitionTransformationTree.getRootSourceNodes(TypeDefinition)
public Collection<SourceNode> getRootSourceNodes()
TransformationTree
getRootSourceNodes
in interface TransformationTree
TransformationTree.getRootSourceNodes()
public Cell getTypeCell()
TransformationTree
getTypeCell
in interface TransformationTree
TransformationTree.getTypeCell()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a