Package org.apache.uima.uimacpp
Class UimacppEngine
java.lang.Object
org.apache.uima.uimacpp.UimacppEngine
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbatchProcessCompletevoidCasConsumer collectionProcessCompletestatic voidconfigureResourceManager(String workDirectory, String dataDirectory) Configure the TAF Resource Manager.static UimacppEnginecreateJTafTAE(String configFile) create a TAF engine with a config filevoiddestroy()de-initializes the TAF engine.protected voidfinalize()Deprecated.static StringgetErrorMessage(long errorCode) helper function to get the error message for some TAF error ID.static Stringhelper function to get the TAF JNI version.booleanhasNext()hasNextvoidnextvoidprocess(ResultSpecification rs, CAS aCas, boolean casIsEmpty) process the document.
- 
Constructor Details- 
UimacppEngine- Throws:
- UimacppException
 
 
- 
- 
Method Details- 
configureResourceManagerpublic static void configureResourceManager(String workDirectory, String dataDirectory) throws UimacppException Configure the TAF Resource Manager.- Parameters:
- workDirectory- the work directory
- dataDirectory- the data directory
- Throws:
- UimacppException- wraps any exception
 
- 
createJTafTAEcreate a TAF engine with a config file- Parameters:
- configFile- the configuration file used for initialization
- Returns:
- a UimacppEngine
- Throws:
- UimacppException- pass thru
 
- 
destroyde-initializes the TAF engine.- Throws:
- UimacppException- wraps any exception
 
- 
processprocess the document.- Parameters:
- rs- the result specification
- aCas- the CAS
- casIsEmpty- tbd
- Throws:
- UimacppException- wraps any exception
 
- 
hasNexthasNext- Returns:
- true if there's a next element
- Throws:
- UimacppException- wraps any exception
 
- 
nextnext- Parameters:
- segment- tbd
- Throws:
- UimacppException- wraps any exception
 
- 
batchProcessCompletebatchProcessComplete- Throws:
- UimacppException- wraps any exception
 
- 
collectionProcessCompleteCasConsumer collectionProcessComplete- Throws:
- UimacppException- wraps any exception
 
- 
getErrorMessagehelper function to get the error message for some TAF error ID.- Parameters:
- errorCode- the code used as the key to look up the error message
- Returns:
- the error message
- Throws:
- UimacppException- wraps any exception
 
- 
getTafJNIVersionhelper function to get the TAF JNI version.- Returns:
- Taf JNI Version
- Throws:
- UimacppException- wraps any exception
 
- 
finalizeDeprecated.
 
-