org.apache.ctakes.assertion.pipelines
Class CtakesFileNamer
java.lang.Object
org.apache.ctakes.assertion.pipelines.CtakesFileNamer
- All Implemented Interfaces:
- org.uimafit.component.xwriter.XWriterFileNamer, org.uimafit.factory.initializable.Initializable
public class CtakesFileNamer
- extends java.lang.Object
- implements org.uimafit.component.xwriter.XWriterFileNamer, org.uimafit.factory.initializable.Initializable
This is a very simple implementation of XWriterFileNamer that generates file names based on a
prefix string and a incrementing counter.
- Author:
- Philip Ogren
Field Summary |
(package private) int |
i
|
static java.lang.String |
PARAM_PREFIX
The parameter name for the configuration parameter that specifies a fixed prefix for all
returned file names. |
static java.lang.String |
PARAM_SUFFIX
The parameter name for the configuration parameter that specifies a fixed suffix for all
returned file names. |
Method Summary |
void |
initialize(org.apache.uima.UimaContext context)
|
java.lang.String |
nameFile(org.apache.uima.jcas.JCas jcas)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_PREFIX
public static final java.lang.String PARAM_PREFIX
- The parameter name for the configuration parameter that specifies a fixed prefix for all
returned file names.
PARAM_SUFFIX
public static final java.lang.String PARAM_SUFFIX
- The parameter name for the configuration parameter that specifies a fixed suffix for all
returned file names.
i
int i
CtakesFileNamer
public CtakesFileNamer()
nameFile
public java.lang.String nameFile(org.apache.uima.jcas.JCas jcas)
- Specified by:
nameFile
in interface org.uimafit.component.xwriter.XWriterFileNamer
initialize
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
- Specified by:
initialize
in interface org.uimafit.factory.initializable.Initializable
- Throws:
org.apache.uima.resource.ResourceInitializationException