public class WriteChartItem extends ChartItem
chartItemSpecification, CONTINUE, flowChartinstance, NEWITERATION, TERMINATE
Constructor and Description |
---|
WriteChartItem() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class<? extends SyntaxGraphWriter> |
getGraphWriterClass() |
java.lang.String |
getNullValueStrategy() |
java.lang.String |
getOutputCharSet() |
DataFormatInstance |
getOutputDataFormatInstance() |
java.lang.String |
getOutputFileName() |
java.lang.String |
getOutputFormatName() |
java.lang.String |
getSourceName() |
java.lang.Class<? extends SyntaxGraphWriter> |
getSyntaxGraphWriterClass() |
SyntaxGraphWriter |
getWriter() |
java.lang.String |
getWriterOptions() |
int |
hashCode() |
void |
initialize(FlowChartInstance flowChartinstance,
ChartItemSpecification chartItemSpecification)
Initialize the chart item
|
void |
initOutput(java.lang.String nullValueStategy) |
void |
initWriter(java.lang.Class<? extends SyntaxGraphWriter> syntaxGraphWriterClass,
java.lang.String outputFile,
java.lang.String outputCharSet,
java.lang.String writerOption) |
int |
postprocess(int signal)
Cause the chart item to perform the postprocess tasks
|
int |
preprocess(int signal)
Cause the chart item to perform the preprocess tasks
|
int |
process(int signal)
Cause the chart item to perform the process task (for every sentence)
|
void |
setNullValueStrategy(java.lang.String nullValueStrategy) |
void |
setOutputCharSet(java.lang.String outputCharSet) |
void |
setOutputFileName(java.lang.String outputFileName) |
void |
setOutputFormatName(java.lang.String outputFormatName) |
void |
setSyntaxGraphWriterClass(java.lang.Class<?> graphWriterClass) |
void |
setWriterOptions(java.lang.String writerOptions) |
void |
terminate()
Terminates and cleans up the chart item
|
java.lang.String |
toString() |
getChartElement, getChartItemSpecification, getFlowChartInstance, getOptionContainerIndex, setChartItemSpecification, setFlowChartInstance
public WriteChartItem()
public void initialize(FlowChartInstance flowChartinstance, ChartItemSpecification chartItemSpecification) throws MaltChainedException
ChartItem
initialize
in class ChartItem
flowChartinstance
- the flow chart instance that the chart item belongs tochartItemSpecification
- a specification of the chart itemMaltChainedException
public int preprocess(int signal) throws MaltChainedException
ChartItem
preprocess
in class ChartItem
signal
- returned by the previous chart itemMaltChainedException
public int process(int signal) throws MaltChainedException
ChartItem
process
in class ChartItem
signal
- returned by the previous chart itemMaltChainedException
public int postprocess(int signal) throws MaltChainedException
ChartItem
postprocess
in class ChartItem
signal
- returned by the previous chart itemMaltChainedException
public void terminate() throws MaltChainedException
ChartItem
terminate
in class ChartItem
MaltChainedException
public java.lang.String getOutputFormatName()
public void setOutputFormatName(java.lang.String outputFormatName)
public java.lang.String getOutputFileName()
public void setOutputFileName(java.lang.String outputFileName)
public java.lang.String getOutputCharSet()
public void setOutputCharSet(java.lang.String outputCharSet)
public java.lang.String getWriterOptions()
public void setWriterOptions(java.lang.String writerOptions)
public java.lang.Class<? extends SyntaxGraphWriter> getSyntaxGraphWriterClass()
public void setSyntaxGraphWriterClass(java.lang.Class<?> graphWriterClass) throws MaltChainedException
MaltChainedException
public java.lang.String getNullValueStrategy()
public void setNullValueStrategy(java.lang.String nullValueStrategy)
public void initOutput(java.lang.String nullValueStategy) throws MaltChainedException
MaltChainedException
public void initWriter(java.lang.Class<? extends SyntaxGraphWriter> syntaxGraphWriterClass, java.lang.String outputFile, java.lang.String outputCharSet, java.lang.String writerOption) throws MaltChainedException
MaltChainedException
public java.lang.Class<? extends SyntaxGraphWriter> getGraphWriterClass()
public SyntaxGraphWriter getWriter()
public java.lang.String getSourceName()
public DataFormatInstance getOutputDataFormatInstance()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.