uk.org.blankaspect.nlf
Interface Chunk.Processor

Enclosing class:
Chunk

public static interface Chunk.Processor

This interface specifies the method that must be implemented by a class that processes the chunks that are visited in the traversal of a document tree or subtree.

Since:
1.0
See Also:
ChunkList.processChunks(NlfConstants.TraversalOrder, Chunk.Processor), Document.processChunks(NlfConstants.TraversalOrder, Chunk.Processor)

Method Summary
 void process(Chunk chunk)
          Processes the specified chunk.
 

Method Detail

process

void process(Chunk chunk)
             throws TerminatedException
Processes the specified chunk. During the traversal of a document tree or subtree, this method is called on every chunk that is visited.

A processor that wants to terminate the traversal of the tree should throw a TerminatedException, which can wrap another java.lang.Throwable.

Parameters:
chunk - the chunk that is to be processed.
Throws:
TerminatedException - if the traversal of the tree or subtree is terminated.
Since:
1.0
See Also:
TerminatedException