| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectemolib.util.proc.TextDataProcessor
emolib.util.printer.Printer
public class Printer
The Printer class provides a device to output the content of the data flowing in the processing pipeline.
The Printer can be configured through the XML configuration file to output various types of information. Its inclusion is not restricted to any part of the processing chain. The idea is that the Printer enables the check-out procedure to be carried out easily and securely thus being a trustful monitor for the application.
The different configuration parameters are listed as follows:
| Field Summary | |
|---|---|
| static java.lang.String | PROP_EMOTIONAL_WORDS | 
| static java.lang.String | PROP_MODIFIERS | 
| static java.lang.String | PROP_NOUNS | 
| static java.lang.String | PROP_NUMBER_WORDS | 
| static java.lang.String | PROP_STEMMED_SYNONYMS | 
| static java.lang.String | PROP_STEMS | 
| static java.lang.String | PROP_SYNONYMS | 
| static java.lang.String | PROP_WORD_CLASS | 
| static java.lang.String | PROP_WORD_POS | 
| Constructor Summary | |
|---|---|
| Printer()Main constructor of the Printer. | |
| Method Summary | |
|---|---|
|  void | applyPrinting(TextData inputTextDataObject)Method to perform the printing 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 Printer. | 
|  void | newProperties(PropertySheet ps)This method is called when this configurable component has new data. | 
|  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 | 
| Field Detail | 
|---|
public static final java.lang.String PROP_SYNONYMS
public static final java.lang.String PROP_NUMBER_WORDS
public static final java.lang.String PROP_MODIFIERS
public static final java.lang.String PROP_EMOTIONAL_WORDS
public static final java.lang.String PROP_STEMS
public static final java.lang.String PROP_STEMMED_SYNONYMS
public static final java.lang.String PROP_NOUNS
public static final java.lang.String PROP_WORD_CLASS
public static final java.lang.String PROP_WORD_POS
| Constructor Detail | 
|---|
public Printer()
| 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 void applyPrinting(TextData inputTextDataObject)
inputTextDataObject - The TextData object to process.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||