org.modeshape.sequencer.text

## Interface RowFactory

- All Known Implementing Classes:
    DefaultRowFactory

      @NotThreadSafe
      public interface RowFactory

  A simple interface that allows an implementer to control how rows in a text file are mapped to properties (including primary and mixin types) in the graph.

  Implementations of this class must provide a public, no-argument constructor.

  To use, supply the implementation class name to a `AbstractTextSequencer` object. New instances are created for each `Sequencer.execute(javax.jcr.Property, javax.jcr.Node, org.modeshape.jcr.api.sequencer.Sequencer.Context)` so implementations of this interface need not be thread-safe.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `recordRow(Node outputNode, String[] columns)` Records a row using under the provided `Node` instance.

- - ### Method Detail

    - #### recordRow

          void recordRow(Node outputNode,
                       String[] columns)
                         throws RepositoryException

      Records a row using under the provided `Node` instance.
      Parameters:
        `outputNode` - the node under which the sequencing output is placed.
        `columns` - the columns that could be parsed out for the row
      Throws:
        `RepositoryException` - if anything fails while recording the row under the ouput node.

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