Humboldt Alignment Editor 2.5.0

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

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
All Implemented Interfaces:
GroupNode, TransformationNode
Direct Known Subclasses:
TargetNodeImpl, TransformationTreeImpl

public abstract class AbstractGroupNode
extends AbstractTransformationNode
implements GroupNode

Abstract group node implementation.

Author:
Simon Templer

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.common.align.model.transformation.tree.GroupNode
ANNOTATION_CHILDREN
 
Constructor Summary
AbstractGroupNode(GroupNode parent)
          Create a group node.
 
Method Summary
 void addAnnotatedChild(TargetNode node)
          Add a node as annotated child.
 List<TargetNode> getChildren(boolean includeAnnotations)
          Get the type/group/property's children
abstract  List<TargetNode> getFixedChildren()
          Get the fixed target node children, i.e.
 GroupNode getParent()
          Get the parent group node
 
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.TransformationNode
accept, getAnnotation, hasAnnotations, reset, setAnnotation
 

Constructor Detail

AbstractGroupNode

public AbstractGroupNode(GroupNode parent)
Create a group node.

Parameters:
parent - the parent node, may be null
Method Detail

getFixedChildren

public abstract List<TargetNode> getFixedChildren()
Get the fixed target node children, i.e. those that are not represented through an annotation.

Returns:
the list of fixed child target nodes

getParent

public GroupNode getParent()
Description copied from interface: GroupNode
Get the parent group node

Specified by:
getParent in interface GroupNode
Returns:
the parent group node, may be null
See Also:
GroupNode.getParent()

getChildren

public List<TargetNode> getChildren(boolean includeAnnotations)
Description copied from interface: GroupNode
Get the type/group/property's children

Specified by:
getChildren in interface GroupNode
Parameters:
includeAnnotations - if annotated children should be included
Returns:
the node children
See Also:
GroupNode.getChildren(boolean)

addAnnotatedChild

public void addAnnotatedChild(TargetNode node)
Description copied from interface: GroupNode
Add a node as annotated child. This means the child is removed on TransformationNode.reset().

Specified by:
addAnnotatedChild in interface GroupNode
Parameters:
node - the target node to add as annotated child
See Also:
GroupNode.addAnnotatedChild(TargetNode)

Humboldt Alignment Editor 2.5.0

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