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
Nested ClassesModifier and TypeClassDescriptionstatic classThe Class ErrorExit.static interfaceInterface implemented by JCAS code generation's templates. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertiesThe Constant casCreateProperties.The error. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.uima.resource.ResourceManagerCreates the resource manager.voiddriveGui()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 voidThe main method.intmain0(String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError) Main 0.intArguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxxvoidmainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.CASImpl aCas) Main for cde.voidmainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.CASImpl aCas, String pProjectPathDir, boolean limitToProjectScope, Map<String, Set<String>> pMergedTypesAddingFeatures) Main for cde.voidmainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.CASImpl aCas, Class<JCasTypeTemplate> jcasTypeClass, Class<JCasTypeTemplate> jcas_TypeClass) Main generate all types from templates.voidmainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.CASImpl aCas, Class<JCasTypeTemplate> jcasTypeClass, String pProjectPathDir, boolean limitToProjectScope, Map<String, Set<String>> pMergedTypesAddingFeatures) Main generate all types from templates.static StringRemoves 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, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.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, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.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, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.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, org.apache.uima.resource.metadata.TypeDescription[] tds, org.apache.uima.cas.impl.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
public org.apache.uima.resource.ResourceManager createResourceManager()Creates the resource manager.- Returns:
- the resource manager
-