public class UIMAUtil extends Object
UIMAUtil class provides convenient methods for handling UIMA specific objects.| Modifier and Type | Field and Description |
|---|---|
static String |
ANALYSIS_ENGINE_CTG
Analysis Engine
|
static String |
CAS_CONSUMER_CTG
CAS Consumer
|
static String |
CAS_INITIALIZER_CTG
CAS Initializer
|
static String |
COLLECTION_READER_CTG
Collection Reader
|
static String |
CPE_CONFIGURATION_CTG
CPE Configuration
|
static String |
REUSABLE_RESOURCE_CTG
Reusable Resource
|
static String |
TYPE_SYSTEM_CTG
Type System
|
| Constructor and Description |
|---|
UIMAUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Exception |
getLastErrorForXmlDesc(File xmlDescFile)
Returns the last logged
Exception object associated with a given XML descriptor
file. |
static Exception |
getLastErrorForXmlDesc(URL xmlDescUrl)
Returns the last logged
Exception object associated with a given XML descriptor
URL. |
static String |
identifyUimaComponentCategory(File xmlDescFile)
Identifies a given UIMA component/resource category based on its XML descriptor.
|
static String |
identifyUimaComponentCategory(URL xmlDescUrl)
Identifies a given UIMA component/resource category based on its XML descriptor.
|
public static final String ANALYSIS_ENGINE_CTG
public static final String CAS_CONSUMER_CTG
public static final String CAS_INITIALIZER_CTG
public static final String COLLECTION_READER_CTG
public static final String CPE_CONFIGURATION_CTG
public static final String TYPE_SYSTEM_CTG
public static final String REUSABLE_RESOURCE_CTG
public static Exception getLastErrorForXmlDesc(File xmlDescFile)
Exception object associated with a given XML descriptor
file.xmlDescFile - The given XML descriptor file.Exception object associated with the given XML
descriptor file.public static Exception getLastErrorForXmlDesc(URL xmlDescUrl)
Exception object associated with a given XML descriptor
URL.xmlDescUrl - The given XML descriptor URL.Exception object associated with the given XML
descriptor URL.public static String identifyUimaComponentCategory(File xmlDescFile) throws IOException
null. If the
UIMA component category cannot be identified based on the given XML descriptor file, the
associated UIMA exception is logged and can be retrieved later by using the
getLastErrorForXmlDesc() method.xmlDescFile - The given component XML descriptor file.null, if the category cannot be identified
based on the given XML descriptor file.IOException - If any I/O exception occurred.public static String identifyUimaComponentCategory(URL xmlDescUrl) throws IOException
null. If the
UIMA component category cannot be identified based on the given XML descriptor file, the
associated UIMA exception is logged and can be retrieved later by using the
getLastErrorForXmlDesc() method.xmlDescUrl - The given component XML descriptor URL.null, if the category cannot be identified
based on the given XML descriptor file.IOException - If any I/O exception occurred.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.