|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.uima.pear.util.UIMAUtil
public class UIMAUtil
The UIMAUtil
class provides convenient methods for handling UIMA specific objects.
Field Summary | |
---|---|
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 Summary | |
---|---|
UIMAUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public UIMAUtil()
Method Detail |
---|
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 idetified
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 idetified
based on the given XML descriptor file.
IOException
- If any I/O exception occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |