public class SimpleXmiListener extends BaseListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
launchAnnotationViewer
Flag to launch annotation viewer when processing is complete.
|
static org.apache.log4j.Logger |
log
Logging object of output.
|
static String |
TYPE_DESCRIPTION_NAME
Name of the type system description which this listener will serialize if the typeSystemDescriptor is set.
|
protected File |
typeDescriptionFile
File pointer to the serialized type description.
|
protected LeoTypeSystemDescription |
typeSystemDescriptor
Path to the type system descriptor or aggregate descriptor file for the service.
|
annotationTypeFilter, docInfo, exitOnError, inputType, lastException, LOG, logErrors, mOutputDir, numReceived, numSent, previousReferenceId, referenceID| Constructor and Description |
|---|
SimpleXmiListener(File outputDir)
Constructor with output directory input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectionProcessComplete(org.apache.uima.collection.EntityProcessStatus aStatus) |
void |
entityProcessComplete(org.apache.uima.cas.CAS aCas,
org.apache.uima.collection.EntityProcessStatus aStatus) |
LeoTypeSystemDescription |
getTypeSystemDescriptor()
Get the type system or aggregate descriptor File reference that this listener will set in the viewer if launched.
|
boolean |
isLaunchAnnotationViewer()
True if the annotation viewer should be launched after processing is complete, else false.
|
protected void |
launchAnnotationViewer()
Launch the UIMA annotation viewer.
|
SimpleXmiListener |
setLaunchAnnotationViewer(boolean launchAnnotationViewer)
Set the value of launch annotation viewer.
|
SimpleXmiListener |
setTypeSystemDescriptor(File typeSystemDescriptor)
Set the type system descriptor File reference that this listener will set in the viewer if launched.
|
SimpleXmiListener |
setTypeSystemDescriptor(LeoTypeSystemDescription typeSystemDescriptor)
Set the type system description this listener will serialize into the output directory.
|
checkForError, entityProcessError, getAnnotationTypeFilter, getInputType, getInputTypesList, getNumReceived, getNumSent, getOutputDir, getReferenceLocation, hasAnnotationsToProcess, hasFilteredAnnotation, initializationComplete, isExitOnError, isLogErrors, onBeforeMessageSend, setAnnotationTypeFilter, setExitOnError, setInputType, setLogErrors, setOutputDirprotected boolean launchAnnotationViewer
protected LeoTypeSystemDescription typeSystemDescriptor
protected File typeDescriptionFile
public static final String TYPE_DESCRIPTION_NAME
public static final org.apache.log4j.Logger log
public SimpleXmiListener(File outputDir)
outputDir - the directory to write the final xmi files to.public LeoTypeSystemDescription getTypeSystemDescriptor()
public SimpleXmiListener setTypeSystemDescriptor(File typeSystemDescriptor) throws Exception
typeSystemDescriptor - type system descriptor file referenceExceptionpublic SimpleXmiListener setTypeSystemDescriptor(LeoTypeSystemDescription typeSystemDescriptor)
typeSystemDescriptor - type system descriptor to setpublic boolean isLaunchAnnotationViewer()
public SimpleXmiListener setLaunchAnnotationViewer(boolean launchAnnotationViewer)
launchAnnotationViewer - True if the annotation viewer should be launched after processing is complete, else false.public void entityProcessComplete(org.apache.uima.cas.CAS aCas,
org.apache.uima.collection.EntityProcessStatus aStatus)
entityProcessComplete in interface org.apache.uima.aae.client.UimaASStatusCallbackListenerentityProcessComplete in class BaseListeneraCas - the CAS containing the processed entity and the analysis resultsaStatus - the status of the processing. This object contains a record of any Exception that occurred, as well as timing information.UimaAsBaseCallbackListener.entityProcessComplete(org.apache.uima.cas.CAS, org.apache.uima.collection.EntityProcessStatus)public void collectionProcessComplete(org.apache.uima.collection.EntityProcessStatus aStatus)
collectionProcessComplete in interface org.apache.uima.aae.client.UimaASStatusCallbackListenercollectionProcessComplete in class BaseListeneraStatus - the status of the processing. This object contains a record of any Exception that occurred, as well as timing information.UimaAsBaseCallbackListener.collectionProcessComplete(org.apache.uima.collection.EntityProcessStatus)protected void launchAnnotationViewer()
Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.