| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectemolib.util.proc.TextDataProcessor
emolib.formatter.AffectiveFormatter
public abstract class AffectiveFormatter
The AffectiveFormatter abstract class defines the general structure to perform the formatting of the results.
This module should format the results obtained from the processing chain and present them accordingly. For this purpose, it must always be plugged at the end of the processing pipeline thus being the last text data processor of the chain.
Due to the position where this module is located and the function it has been designed for, it is commonly referred to as the OUTPUTTER of the pipeline, therefore it implements the "outputData" method.
| Constructor Summary | |
|---|---|
| AffectiveFormatter()Main constructor of the AffectiveFormatter. | |
| Method Summary | |
|---|---|
| abstract  void | applyFormatting(TextData inputTextDataObject)Method to perform the formatting process. | 
|  Data | getData()Obtains the TextData from the previous module, processes it and makes it available to the rest of the text processing chain. | 
|  void | initialize()Method to initialize the AffectiveFormatter. | 
|  void | newProperties(PropertySheet ps)This method is called when this configurable component has new data. | 
| abstract  void | outputData()Method to produce the results obtained from the text processing pipeline into a file. | 
| abstract  void | outputData(java.io.File file)Method to produce the results obtained from the text processing pipeline into a determined file. | 
|  void | register(java.lang.String name,
         Registry registry)Register my properties. | 
| Methods inherited from class emolib.util.proc.TextDataProcessor | 
|---|
| flush, getName, getPredecessor, setPredecessor, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public AffectiveFormatter()
| Method Detail | 
|---|
public void register(java.lang.String name,
                     Registry registry)
              throws PropertyException
Configurable
register in interface Configurableregister in class TextDataProcessorname - the name of the componentregistry - the registry for this component
PropertyException
public void newProperties(PropertySheet ps)
                   throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class TextDataProcessorps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.
public Data getData()
             throws DataProcessingException
getData in interface DataProcessorgetData in class TextDataProcessorDataProcessingException - If there is a processing error.public void initialize()
initialize in interface DataProcessorinitialize in class TextDataProcessorpublic abstract void applyFormatting(TextData inputTextDataObject)
inputTextDataObject - The TextData object to process.public abstract void outputData()
public abstract void outputData(java.io.File file)
file - File The determined file to output the results. This is normally a temp file.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||