com.sun.labs.minion.pipeline
Class ReplacementStage
java.lang.Object
com.sun.labs.minion.pipeline.StageAdapter
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.
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 |
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
ReplacementStage
public ReplacementStage()
- Creates a ReplacementStage
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