edu.columbia.cs.ref.tool.preprocessor
Class CompositeSequentialPreprocessor

java.lang.Object
  extended by edu.columbia.cs.ref.tool.preprocessor.CompositeSequentialPreprocessor
All Implemented Interfaces:
Preprocessor

public class CompositeSequentialPreprocessor
extends java.lang.Object
implements Preprocessor

This class is an implementation of the Preprocessor interface. This Preprocessor is used to compose several preprocessors. The result of this processor is the consecutive application of several transformations to the input content

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

Constructor Summary
CompositeSequentialPreprocessor(Preprocessor... preprocessors)
          Instantiates a new composite sequential preprocessor.
 
Method Summary
 java.lang.String process(java.lang.String content)
          This method is responsible for processing the content of a document and returns a transformed String that corresponds to a transformed version of the input content
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeSequentialPreprocessor

public CompositeSequentialPreprocessor(Preprocessor... preprocessors)
Instantiates a new composite sequential preprocessor. Note that the order of the inputs is very important because the transformations may not be commutative.

Parameters:
preprocessors - the preprocessors
Method Detail

process

public java.lang.String process(java.lang.String content)
Description copied from interface: Preprocessor
This method is responsible for processing the content of a document and returns a transformed String that corresponds to a transformed version of the input content

Specified by:
process in interface Preprocessor
Parameters:
content - the content of document represented as a String
Returns:
the transformed version of the input content