com.sun.labs.minion.pipeline
Class ReplacementStage

java.lang.Object
  extended by com.sun.labs.minion.pipeline.StageAdapter
      extended by com.sun.labs.minion.pipeline.ReplacementStage
All Implemented Interfaces:
Stage, PipelineStage, com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

public class ReplacementStage
extends StageAdapter
implements com.sun.labs.util.props.Configurable

A stage that replaces some words with others.


Field Summary
protected static java.lang.String logTag
           
static java.lang.String PROP_REPLACEMENT_FILE
           
 
Fields inherited from class com.sun.labs.minion.pipeline.StageAdapter
downstream, name
 
Constructor Summary
ReplacementStage()
          Creates a ReplacementStage
 
Method Summary
 void newProperties(com.sun.labs.util.props.PropertySheet ps)
           
 void token(Token t)
          Processes a token from further up the pipeline.
 
Methods inherited from class com.sun.labs.minion.pipeline.StageAdapter
defineField, dump, endDocument, endField, getDownstream, getName, punctuation, savedData, setDownstream, setName, shutdown, startDocument, startField, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logTag

protected static java.lang.String logTag

PROP_REPLACEMENT_FILE

@ConfigString
public static final java.lang.String PROP_REPLACEMENT_FILE
See Also:
Constant Field Values
Constructor Detail

ReplacementStage

public ReplacementStage()
Creates a ReplacementStage

Method Detail

token

public void token(Token t)
Processes a token from further up the pipeline.

Specified by:
token in interface Stage
Overrides:
token in class StageAdapter
Parameters:
t - The token to process.

newProperties

public void newProperties(com.sun.labs.util.props.PropertySheet ps)
                   throws com.sun.labs.util.props.PropertyException
Specified by:
newProperties in interface com.sun.labs.util.props.Configurable
Overrides:
newProperties in class StageAdapter
Throws:
com.sun.labs.util.props.PropertyException