org.modeshape.sequencer.teiid
Class ModelSequencer

java.lang.Object
  extended by org.modeshape.sequencer.teiid.ModelSequencer
All Implemented Interfaces:
StreamSequencer

public class ModelSequencer
extends Object
implements StreamSequencer

A sequencer of Teiid XMI model files.


Constructor Summary
  ModelSequencer()
           
protected ModelSequencer(VdbModel vdbModel, Path parentPathOfModel, ReferenceResolver resolver)
           
 
Method Summary
 boolean isUseXmiUuidsAsJcrUuids()
           
 void sequence(InputStream stream, SequencerOutput output, StreamSequencerContext context)
          Sequence the data found in the supplied stream, placing the output information into the supplied map.
 void setUseXmiUuidsAsJcrUuids(boolean useXmiUuidsAsJcrUuids)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelSequencer

public ModelSequencer()

ModelSequencer

protected ModelSequencer(VdbModel vdbModel,
                         Path parentPathOfModel,
                         ReferenceResolver resolver)
Method Detail

isUseXmiUuidsAsJcrUuids

public boolean isUseXmiUuidsAsJcrUuids()
Returns:
useXmiUuidsAsJcrUuids

setUseXmiUuidsAsJcrUuids

public void setUseXmiUuidsAsJcrUuids(boolean useXmiUuidsAsJcrUuids)
Parameters:
useXmiUuidsAsJcrUuids - Sets useXmiUuidsAsJcrUuids to the specified value.

sequence

public void sequence(InputStream stream,
                     SequencerOutput output,
                     StreamSequencerContext context)
Sequence the data found in the supplied stream, placing the output information into the supplied map.

ModeShape's SequencingService determines the sequencers that should be executed by monitoring the changes to one or more workspaces that it is monitoring. Changes in those workspaces are aggregated and used to determine which sequencers should be called. If the sequencer implements this interface, then this method is called with the property that is to be sequenced along with the interface used to register the output. The framework takes care of all the rest.

Specified by:
sequence in interface StreamSequencer
Parameters:
stream - the stream with the data to be sequenced; never null
output - the output from the sequencing operation; never null
context - the context for the sequencing operation; never null
See Also:
StreamSequencer.sequence(java.io.InputStream, org.modeshape.graph.sequencer.SequencerOutput, org.modeshape.graph.sequencer.StreamSequencerContext)


Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.