Package org.apache.uima.tools.jcasgen
Class Jg
java.lang.Object
org.apache.uima.tools.jcasgen.Jg
Class holds type plugin-wide collections and static methods. Also implements the runnable that is
called to do the processing
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The Class ErrorExit.static interface
Interface implemented by JCAS code generation's templates. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Properties
The Constant casCreateProperties.The error. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates the resource manager.void
driveGui()
Drive gui.Returns the plugin's resource bundle,.getResourceString
(String key) Returns the string from the plugin's resource bundle, or 'key' if not found.Gets the string.static void
The main method.int
main0
(String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError) Main 0.int
Arguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxxvoid
mainForCde
(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas) Main for cde.void
mainForCde
(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, String pProjectPathDir, boolean limitToProjectScope, Map<String, Set<String>> pMergedTypesAddingFeatures) Main for cde.void
mainGenerateAllTypesFromTemplates
(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class<JCasTypeTemplate> jcasTypeClass, Class<JCasTypeTemplate> jcas_TypeClass) Main generate all types from templates.void
mainGenerateAllTypesFromTemplates
(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class<JCasTypeTemplate> jcasTypeClass, String pProjectPathDir, boolean limitToProjectScope, Map<String, Set<String>> pMergedTypesAddingFeatures) Main generate all types from templates.static String
Removes the pkg.
-
Field Details
-
casCreateProperties
The Constant casCreateProperties. -
error
The error.
-
-
Constructor Details
-
Jg
public Jg()Instantiates a new jg.
-
-
Method Details
-
getResourceString
Returns the string from the plugin's resource bundle, or 'key' if not found.- Parameters:
key
- the key- Returns:
- the resource string
-
getString
Gets the string.- Parameters:
key
- the keysubstitutions
- the substitutions- Returns:
- the string
-
getResourceBundle
Returns the plugin's resource bundle,.- Returns:
- the resource bundle
-
driveGui
public void driveGui()Drive gui. -
main
The main method.- Parameters:
args
- the arguments
-
mainForCde
public void mainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas) throws IOException Main for cde.- Parameters:
aMerger
- the a mergeraProgressMonitor
- the a progress monitoraError
- the a errorinputFile
- the input fileoutputDirectory
- the output directorytds
- the tdsaCas
- the a cas- Throws:
IOException
- Signals that an I/O exception has occurred.
-
mainForCde
public void mainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, String pProjectPathDir, boolean limitToProjectScope, Map<String, Set<String>> pMergedTypesAddingFeatures) throws IOExceptionMain for cde.- Parameters:
aMerger
- the a mergeraProgressMonitor
- the a progress monitoraError
- the a errorinputFile
- the input fileoutputDirectory
- the output directorytds
- the tdsaCas
- the a caspProjectPathDir
- the project path dirlimitToProjectScope
- the limit J cas gen to project scopepMergedTypesAddingFeatures
- the merged types adding features- Throws:
IOException
- Signals that an I/O exception has occurred.
-
mainGenerateAllTypesFromTemplates
public void mainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class<JCasTypeTemplate> jcasTypeClass, Class<JCasTypeTemplate> jcas_TypeClass) throws IOException, InstantiationException, IllegalAccessException Main generate all types from templates.- Parameters:
aMerger
- the a mergeraProgressMonitor
- the a progress monitoraError
- the a errorinputFile
- the input fileoutputDirectory
- the output directorytds
- the tdsaCas
- the a casjcasTypeClass
- the jcas type classjcas_TypeClass
- the jcas type class- Throws:
IOException
- Signals that an I/O exception has occurred.InstantiationException
- the instantiation exceptionIllegalAccessException
- the illegal access exception
-
mainGenerateAllTypesFromTemplates
public void mainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class<JCasTypeTemplate> jcasTypeClass, String pProjectPathDir, boolean limitToProjectScope, Map<String, Set<String>> pMergedTypesAddingFeatures) throws IOException, InstantiationException, IllegalAccessExceptionMain generate all types from templates.- Parameters:
aMerger
- the a mergeraProgressMonitor
- the a progress monitoraError
- the a errorinputFile
- the input fileoutputDirectory
- the output directorytds
- the tdsaCas
- the a casjcasTypeClass
- the jcas type classpProjectPathDir
- the project path dirlimitToProjectScope
- the limit J cas gen to project scopepMergedTypesAddingFeatures
- the merged types adding features- Throws:
IOException
- Signals that an I/O exception has occurred.InstantiationException
- the instantiation exceptionIllegalAccessException
- the illegal access exception
-
main0
Main 0.- Parameters:
args
- the argsaMerger
- the a mergeraProgressMonitor
- the a progress monitoraError
- the a error- Returns:
- the int
-
main1
Arguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxx- Parameters:
arguments
- the arguments- Returns:
- the int
-
removePkg
Removes the pkg.- Parameters:
name
- the name- Returns:
- the string
-
createResourceManager
Creates the resource manager.- Returns:
- the resource manager
-