Package org.opensextant.output
Interface ResultsFormatter
- All Known Implementing Classes:
AbstractFormatter
,AbstractGenericFormatter
,CSVFormatter
,CSVGenericFormatter
,GDBFormatter
,GeoCSVFormatter
,GISDataFormatter
,KMLFormatter
,ShapefileFormatter
,WKTFormatter
public interface ResultsFormatter
Interface for classes that generate output from corpora that have been
processed by OpenSextant.
- Author:
- Rich Markeloff, MITRE Corp. Initial version created on Jul 13, 2011
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
finish()
formatResults
(ExtractionResult result) Formats the results obtained from processing a corpus through OpenSextant.Get the path to the output file.Get the type of output produced by this formatter.void
void
setOutputDir
(String pathname) Set the path to the output directory.void
setOutputFilename
(String filename) Set the name of the output file.void
setParameters
(Parameters params) A more convenient way of passing in a list of parameters.void
-
Method Details
-
setParameters
A more convenient way of passing in a list of parameters. -
getJobName
String getJobName()- Returns:
- name of job
-
setOutputDir
Set the path to the output directory.- Parameters:
pathname
-
-
setOutputFilename
Set the name of the output file.- Parameters:
filename
-
-
getOutputType
String getOutputType()Get the type of output produced by this formatter.- Returns:
- type of output
-
getOutputFilepath
String getOutputFilepath()Get the path to the output file.- Returns:
- file path of output
-
formatResults
Formats the results obtained from processing a corpus through OpenSextant. Returns a string to display to the user. Typically this will be HTML to be shown in a browser.- Parameters:
result
-- Returns:
- A message for the user
- Throws:
ProcessingException
- formatting error
-
start
- Throws:
ProcessingException
-
finish
void finish() -
addField
- Parameters:
f
- field- Throws:
ConfigException
- if not consistent with schema
-
removeField
- Parameters:
f
- field- Throws:
ConfigException
- if not consistent with schema
-