Package org.apache.uima.tools.jcasgen
Class Jg
- java.lang.Object
-
- org.apache.uima.tools.jcasgen.Jg
-
public class Jg extends Object
Class holds type plugin-wide collections and static methods. Also implements the runnable that is called to do the processing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJg.ErrorExitstatic interfaceJg.IJCasTypeTemplateInterface implemeted by JCAS code generation's templates
-
Field Summary
Fields Modifier and Type Field Description static PropertiescasCreatePropertiesIErrorerror
-
Constructor Summary
Constructors Constructor Description Jg()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceManagercreateResourceManager()voiddriveGui()ResourceBundlegetResourceBundle()Returns the plugin's resource bundle,StringgetResourceString(String key)Returns the string from the plugin's resource bundle, or 'key' if not found.StringgetString(String key, Object[] substitutions)static voidmain(String[] args)intmain0(String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError)intmain1(String[] arguments)Arguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxxvoidmainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas)voidmainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, String projectPathDir, boolean limitJCasGenToProjectScope, Map<String,Set<String>> mergedTypesAddingFeatures)voidmainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class jcasTypeClass, Class jcas_TypeClass)voidmainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class jcasTypeClass, Class jcas_TypeClass, String projectPathDir, boolean limitJCasGenToProjectScope, Map<String,Set<String>> mergedTypesAddingFeatures)static StringremovePkg(String name)
-
-
-
Field Detail
-
casCreateProperties
public static final Properties casCreateProperties
-
error
public IError error
-
-
Method Detail
-
getResourceString
public String getResourceString(String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.
-
getResourceBundle
public ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,
-
driveGui
public void driveGui()
-
main
public static void main(String[] args)
-
mainForCde
public void mainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas) throws IOException
- Throws:
IOException
-
mainForCde
public void mainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, String projectPathDir, boolean limitJCasGenToProjectScope, Map<String,Set<String>> mergedTypesAddingFeatures) throws IOException
- Throws:
IOException
-
mainGenerateAllTypesFromTemplates
public void mainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class jcasTypeClass, Class jcas_TypeClass) throws IOException, InstantiationException, IllegalAccessException
-
mainGenerateAllTypesFromTemplates
public void mainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas, Class jcasTypeClass, Class jcas_TypeClass, String projectPathDir, boolean limitJCasGenToProjectScope, Map<String,Set<String>> mergedTypesAddingFeatures) throws IOException, InstantiationException, IllegalAccessException
-
main0
public int main0(String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError)
-
main1
public int main1(String[] arguments)
Arguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxx- Parameters:
arguments-
-
createResourceManager
public ResourceManager createResourceManager()
-
-