org.jboss.dna.sequencer.text
Class DefaultRowFactory

java.lang.Object
  extended by org.jboss.dna.sequencer.text.DefaultRowFactory
All Implemented Interfaces:
RowFactory

@NotThreadSafe
public class DefaultRowFactory
extends Object
implements RowFactory

A default implementation of the RowFactory class. This class records rows in the following subgraph:

 <graph root>
     + text:row[1] (jcr:primaryType = nt:unstructured)
     |   + text:column[1] (jcr:primaryType = nt:unstructured, jcr:mixinTypes = text:column, text:data = )
     |   + ...
     |   + text:column[n] (jcr:primaryType = nt:unstructured, jcr:mixinTypes = text:column, text:data = )
     + ...
     + text:row[m] (jcr:primaryType = nt:unstructured)
         + text:column[1] (jcr:primaryType = nt:unstructured, jcr:mixinTypes = text:column, text:data = )
         + ...
         + text:column[n] (jcr:primaryType = nt:unstructured, jcr:mixinTypes = text:column, text:data = )
 


Constructor Summary
DefaultRowFactory()
           
 
Method Summary
 void recordRow(StreamSequencerContext context, SequencerOutput output, String[] columns)
          Records a row using the provided SequencerOutput instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRowFactory

public DefaultRowFactory()
Method Detail

recordRow

public void recordRow(StreamSequencerContext context,
                      SequencerOutput output,
                      String[] columns)
Description copied from interface: RowFactory
Records a row using the provided SequencerOutput instance.

Specified by:
recordRow in interface RowFactory
Parameters:
context - the sequencer context
output - the StreamSequencer output
columns - the columns that could be parsed out for the row


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