public class Jg extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Jg.ErrorExit
The Class ErrorExit.
|
static interface |
Jg.IJCasTypeTemplate
Interface implemented by JCAS code generation's templates.
|
| Modifier and Type | Field and Description |
|---|---|
static Properties |
casCreateProperties
The Constant casCreateProperties.
|
IError |
error
The error.
|
| Constructor and Description |
|---|
Jg()
Instantiates a new jg.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.uima.resource.ResourceManager |
createResourceManager()
Creates the resource manager.
|
void |
driveGui()
Drive gui.
|
ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle,.
|
String |
getResourceString(String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.
|
String |
getString(String key,
Object[] substitutions)
Gets the string.
|
static void |
main(String[] args)
The main method.
|
int |
main0(String[] args,
IMerge aMerger,
IProgressMonitor aProgressMonitor,
IError aError)
Main 0.
|
int |
main1(String[] arguments)
Arguments are:
-jcasgeninput xxxx
-jcasgenoutput xxxx
-jcasgenclasspath xxxx
|
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)
Main for cde.
|
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)
Main for cde.
|
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)
Main generate all types from templates.
|
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)
Main generate all types from templates.
|
static String |
removePkg(String name)
Removes the pkg.
|
public static final Properties casCreateProperties
public IError error
public String getResourceString(String key)
key - the keypublic String getString(String key, Object[] substitutions)
key - the keysubstitutions - the substitutionspublic ResourceBundle getResourceBundle()
public void driveGui()
public static void main(String[] args)
args - the argumentspublic 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
aMerger - the a mergeraProgressMonitor - the a progress monitoraError - the a errorinputFile - the input fileoutputDirectory - the output directorytds - the tdsaCas - the a casIOException - Signals that an I/O exception has occurred.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 IOException
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 featuresIOException - Signals that an I/O exception has occurred.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
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 classIOException - Signals that an I/O exception has occurred.InstantiationException - the instantiation exceptionIllegalAccessException - the illegal access exceptionpublic 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, IllegalAccessException
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 featuresIOException - Signals that an I/O exception has occurred.InstantiationException - the instantiation exceptionIllegalAccessException - the illegal access exceptionpublic int main0(String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError)
args - the argsaMerger - the a mergeraProgressMonitor - the a progress monitoraError - the a errorpublic int main1(String[] arguments)
arguments - the argumentspublic static String removePkg(String name)
name - the namepublic org.apache.uima.resource.ResourceManager createResourceManager()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.