Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.headless.transform
Class LimboInstanceSink

java.lang.Object
  extended by eu.esdihumboldt.hale.common.headless.transform.LimboInstanceSink
All Implemented Interfaces:
InstanceSink

public class LimboInstanceSink
extends Object
implements InstanceSink

Sink that holds instances in a limbo, to be collected through the offered instance collection.

Author:
Kai Schwierczek

Constructor Summary
LimboInstanceSink()
           
 
Method Summary
 void addInstance(Instance instance)
          Adds an instance to the sink
 void done(boolean cancel)
          Called if the transformation is done or cancelled.
 InstanceCollection getInstanceCollection()
          Returns the associated instance collection, whose iterator will receive the instances that are added to the instance sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimboInstanceSink

public LimboInstanceSink()
Method Detail

addInstance

public void addInstance(Instance instance)
Description copied from interface: InstanceSink
Adds an instance to the sink

Specified by:
addInstance in interface InstanceSink
Parameters:
instance - the instance to add
See Also:
InstanceSink.addInstance(eu.esdihumboldt.hale.common.instance.model.Instance)

done

public void done(boolean cancel)
Called if the transformation is done or cancelled. Subsequent calls to addInstance(Instance) result in undetermined behavior.

Parameters:
cancel - whether the operation was cancelled or simply finished

getInstanceCollection

public InstanceCollection getInstanceCollection()
Returns the associated instance collection, whose iterator will receive the instances that are added to the instance sink.

Returns:
the instance collection for this sink

Humboldt Alignment Editor 2.5.0

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