Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model.transformation.tree.context.impl
Class TargetContext.DuplicationContext

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.context.impl.TargetContext.DuplicationContext
Enclosing class:
TargetContext

public static class TargetContext.DuplicationContext
extends Object

Context of a duplication process. It serves to ensure that each cell or target node is only created once per context duplication.


Constructor Summary
TargetContext.DuplicationContext(Set<Cell> ignoreCells)
          Create a duplication context
 
Method Summary
 void addNode(CellNodeImpl cellNode, CellNode originalCell)
          Add a node to the duplication context.
 void addNode(TargetNodeImpl targetNode, TargetNode originalTarget)
          Add a node to the duplication context.
 Set<Cell> getIgnoreCells()
          Get the cells to be ignored during duplication.
 Collection<Pair<CellNodeImpl,CellNode>> getIncompleteCellNodes()
          Get cell nodes that have incomplete sources compared to the original.
 Collection<Pair<TargetNodeImpl,TargetNode>> getIncompleteTargetNodes()
          Get target nodes that have incomplete children or assignments compared to the original.
 CellNodeImpl getNode(Cell cell)
          Get the cell node associated to the given cell.
 TargetNodeImpl getNode(EntityDefinition entity)
          Get the target node associated to the given entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetContext.DuplicationContext

public TargetContext.DuplicationContext(Set<Cell> ignoreCells)
Create a duplication context

Parameters:
ignoreCells - the cells to be ignored
Method Detail

getNode

public CellNodeImpl getNode(Cell cell)
Get the cell node associated to the given cell.

Parameters:
cell - the cell
Returns:
the cell node or null if none has yet been associated to the cell

addNode

public void addNode(CellNodeImpl cellNode,
                    CellNode originalCell)
Add a node to the duplication context.

Parameters:
cellNode - the cell node to add to the duplication context
originalCell - the original cell node where the cell node was duplicated from

getNode

public TargetNodeImpl getNode(EntityDefinition entity)
Get the target node associated to the given entity.

Parameters:
entity - the entity
Returns:
the target node or null if none has yet been associated to the entity

addNode

public void addNode(TargetNodeImpl targetNode,
                    TargetNode originalTarget)
Add a node to the duplication context.

Parameters:
targetNode - the target node to add to the duplication context
originalTarget - the original target node where the target node was duplicated from

getIgnoreCells

public Set<Cell> getIgnoreCells()
Get the cells to be ignored during duplication.

Returns:
the cells to be ignored

getIncompleteCellNodes

public Collection<Pair<CellNodeImpl,CellNode>> getIncompleteCellNodes()
Get cell nodes that have incomplete sources compared to the original.

Returns:
the incomplete cell node paired with the original cell node it was duplicated from

getIncompleteTargetNodes

public Collection<Pair<TargetNodeImpl,TargetNode>> getIncompleteTargetNodes()
Get target nodes that have incomplete children or assignments compared to the original.

Returns:
the incomplete target node paired with the original target node it was duplicated from

Humboldt Alignment Editor 2.5.0

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