public class ReadChartItem extends ChartItem
chartItemSpecification, CONTINUE, flowChartinstance, NEWITERATION, TERMINATE
Constructor and Description |
---|
ReadChartItem() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInputCharSet() |
DataFormatInstance |
getInputDataFormatInstance() |
java.lang.String |
getInputFileName() |
java.lang.String |
getInputFormatName() |
int |
getIterations() |
java.lang.String |
getNullValueStrategy() |
SyntaxGraphReader |
getReader() |
java.lang.String |
getReaderOptions() |
java.lang.Class<? extends SyntaxGraphReader> |
getSyntaxGraphReaderClass() |
java.lang.String |
getTargetName() |
int |
hashCode() |
void |
initialize(FlowChartInstance flowChartinstance,
ChartItemSpecification chartItemSpecification)
Initialize the chart item
|
void |
initInput(java.lang.String nullValueStategy) |
void |
initReader(java.lang.Class<? extends SyntaxGraphReader> syntaxGraphReader,
java.lang.String inputFile,
java.lang.String inputCharSet,
java.lang.String readerOptions,
int iterations) |
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 |
setInputCharSet(java.lang.String inputCharSet) |
void |
setInputFileName(java.lang.String inputFileName) |
void |
setInputFormatName(java.lang.String inputFormatName) |
void |
setIterations(int iterations) |
void |
setNullValueStrategy(java.lang.String nullValueStrategy) |
void |
setReaderOptions(java.lang.String readerOptions) |
void |
setSyntaxGraphReaderClass(java.lang.Class<?> graphReaderClass) |
void |
setTargetName(java.lang.String targetName) |
void |
terminate()
Terminates and cleans up the chart item
|
java.lang.String |
toString() |
getChartElement, getChartItemSpecification, getFlowChartInstance, getOptionContainerIndex, setChartItemSpecification, setFlowChartInstance
public ReadChartItem()
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 getInputFormatName()
public void setInputFormatName(java.lang.String inputFormatName)
public java.lang.String getInputFileName()
public void setInputFileName(java.lang.String inputFileName)
public java.lang.String getInputCharSet()
public void setInputCharSet(java.lang.String inputCharSet)
public java.lang.String getReaderOptions()
public void setReaderOptions(java.lang.String readerOptions)
public int getIterations()
public void setIterations(int iterations)
public java.lang.Class<? extends SyntaxGraphReader> getSyntaxGraphReaderClass()
public void setSyntaxGraphReaderClass(java.lang.Class<?> graphReaderClass) throws MaltChainedException
MaltChainedException
public java.lang.String getNullValueStrategy()
public void setNullValueStrategy(java.lang.String nullValueStrategy)
public java.lang.String getTargetName()
public void setTargetName(java.lang.String targetName)
public SyntaxGraphReader getReader()
public DataFormatInstance getInputDataFormatInstance()
public void initInput(java.lang.String nullValueStategy) throws MaltChainedException
MaltChainedException
public void initReader(java.lang.Class<? extends SyntaxGraphReader> syntaxGraphReader, java.lang.String inputFile, java.lang.String inputCharSet, java.lang.String readerOptions, int iterations) throws MaltChainedException
MaltChainedException
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.