|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.pear.util.UIMAUtil
public class UIMAUtil
The UIMAUtil
class provides convenient methods for handling UIMA specific objects.
Field Summary | |
---|---|
static java.lang.String |
ANALYSIS_ENGINE_CTG
Analysis Engine |
static java.lang.String |
CAS_CONSUMER_CTG
CAS Consumer |
static java.lang.String |
CAS_INITIALIZER_CTG
CAS Initializer |
static java.lang.String |
COLLECTION_READER_CTG
Collection Reader |
static java.lang.String |
CPE_CONFIGURATION_CTG
CPE Configuration |
static java.lang.String |
REUSABLE_RESOURCE_CTG
Reusable Resource |
static java.lang.String |
TYPE_SYSTEM_CTG
Type System |
Constructor Summary | |
---|---|
UIMAUtil()
|
Method Summary | |
---|---|
static java.lang.Exception |
getLastErrorForXmlDesc(java.io.File xmlDescFile)
Returns the last logged Exception object associated with a given XML descriptor
file. |
static java.lang.Exception |
getLastErrorForXmlDesc(java.net.URL xmlDescUrl)
Returns the last logged Exception object associated with a given XML descriptor
URL. |
static java.lang.String |
identifyUimaComponentCategory(java.io.File xmlDescFile)
Identifies a given UIMA component/resource category based on its XML descriptor. |
static java.lang.String |
identifyUimaComponentCategory(java.net.URL xmlDescUrl)
Identifies a given UIMA component/resource category based on its XML descriptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ANALYSIS_ENGINE_CTG
public static final java.lang.String CAS_CONSUMER_CTG
public static final java.lang.String CAS_INITIALIZER_CTG
public static final java.lang.String COLLECTION_READER_CTG
public static final java.lang.String CPE_CONFIGURATION_CTG
public static final java.lang.String TYPE_SYSTEM_CTG
public static final java.lang.String REUSABLE_RESOURCE_CTG
Constructor Detail |
---|
public UIMAUtil()
Method Detail |
---|
public static java.lang.Exception getLastErrorForXmlDesc(java.io.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 java.lang.Exception getLastErrorForXmlDesc(java.net.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 java.lang.String identifyUimaComponentCategory(java.io.File xmlDescFile) throws java.io.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 idetified
based on the given XML descriptor file.
java.io.IOException
- If any I/O exception occurred.public static java.lang.String identifyUimaComponentCategory(java.net.URL xmlDescUrl) throws java.io.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 idetified
based on the given XML descriptor file.
java.io.IOException
- If any I/O exception occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |