|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.pear.tools.InstallationTester
public class InstallationTester
The InstallationTester
application allows performing simple verification of the
installed UIMA compliant component by using standard UIMA framework interface.
InstallationController
,
UIMAUtil
Constructor Summary | |
---|---|
InstallationTester(String compDescFilePath)
Creates new instance of the InstallationTester class, identifies a specified
component using UIMA API, and invokes appropriate method to test the specified component. |
Method Summary | |
---|---|
static void |
main(String[] args)
Starts the application. |
static boolean |
testAnalysisEngine(File aeSpecifierFile)
Checks if a given AE specifier file can be used to produce an istance of AE. |
static boolean |
testCasConsumer(File ccSpecifierFile)
Checks if a given CC specifier file can be used to produce an instance of CC. |
static boolean |
testCasInitializer(File ciSpecifierFile)
Checks if a given CI specifier file can be used to produce an instance of CI. |
static boolean |
testCollectionReader(File crSpecifierFile)
Checks if a given CR specifier file can be used to produce an instance of CR. |
static boolean |
testCpeCongifuration(File cpeSpecifierFile)
Checks if a given CPE specifier file can be used to produce an instance of CPE. |
static boolean |
testTypeSystem(File tsSpecifierFile)
Checks if a given TS specifier file can be used to create an instance of CAS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstallationTester(String compDescFilePath) throws IOException, InvalidXMLException, ResourceInitializationException, UIMAException, UIMARuntimeException
InstallationTester
class, identifies a specified
component using UIMA API, and invokes appropriate method to test the specified component.
compDescFilePath
- The given component descriptor file path.
IOException
- if any I/O exception occurred.
InvalidXMLException
- if component descriptor is invalid.
ResourceInitializationException
- if the specified component cannot be instantiated.
UIMAException
- if this exception occurred while identifying UIMA component category.
UIMARuntimeException
- if this exception occurred while identifying UIMA component category.Method Detail |
---|
public static void main(String[] args) throws Exception
args
- component_descriptor_file
Exception
- if any exception occurred.public static boolean testAnalysisEngine(File aeSpecifierFile) throws IOException, InvalidXMLException, ResourceInitializationException
true
, if an AE can be instantiated and a CAS object can be created,
false
otherwise.
aeSpecifierFile
- The given AE specifier file.
true
, if an AE can be instantiated and a CAS object can be created,
false
otherwise.
IOException
- If an I/O exception occurred while creating XMLInputSource
.
InvalidXMLException
- If the XML parser failed to parse the given input file.
ResourceInitializationException
- If the specified AE cannot be instantiated.public static boolean testCasConsumer(File ccSpecifierFile) throws IOException, InvalidXMLException, ResourceInitializationException
true
, if a CC can be instantiated, false
otherwise.
ccSpecifierFile
- The given CC specifier file.
true
, if a CC can be instantiated, false
otherwise.
IOException
- If an I/O exception occurred while creating XMLInputSource
.
InvalidXMLException
- If the XML parser failed to parse the given input file.
ResourceInitializationException
- If the specified CC cannot be instantiated.public static boolean testCasInitializer(File ciSpecifierFile) throws IOException, InvalidXMLException, ResourceInitializationException
true
, if a CI can be instantiated, false
otherwise.
ciSpecifierFile
- The given CI specifier file.
true
, if a CI can be instantiated, false
otherwise.
IOException
- If an I/O exception occurred while creating XMLInputSource
.
InvalidXMLException
- If the XML parser failed to parse the given input file.
ResourceInitializationException
- If the specified CI cannot be instantiated.public static boolean testCollectionReader(File crSpecifierFile) throws IOException, InvalidXMLException, ResourceInitializationException
true
, if a CR can be instantiated, false
otherwise.
crSpecifierFile
- The given CR specifier file.
true
, if a CR can be instantiated, false
otherwise.
IOException
- If an I/O exception occurred while creating XMLInputSource
.
InvalidXMLException
- If the XML parser failed to parse the given input file.
ResourceInitializationException
- If the specified CR cannot be instantiated.public static boolean testCpeCongifuration(File cpeSpecifierFile) throws IOException, InvalidXMLException, ResourceInitializationException
true
, if a CPE can be instantiated, false
otherwise.
cpeSpecifierFile
- The given CPE specifier file.
true
, if a CPE can be instantiated, false
otherwise.
IOException
- If an I/O exception occurred while creating XMLInputSource
.
InvalidXMLException
- If the XML parser failed to parse the given input file.
ResourceInitializationException
- If the specified CPE cannot be instantiated.public static boolean testTypeSystem(File tsSpecifierFile) throws IOException, InvalidXMLException, ResourceInitializationException
true
, if a CAS can be created for a given TS, false
otherwise.
tsSpecifierFile
- The given TS specifier file.
true
, if a CAS can be created for the given TS, false
otherwise.
IOException
- If an I/O exception occurred while creating XMLInputSource
.
InvalidXMLException
- If the XML parser failed to parse the given input file.
ResourceInitializationException
- If the specified TS cannot be used to create a CAS.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |