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
  • Field Details

    • casCreateProperties

      public static final Properties casCreateProperties
      The Constant casCreateProperties.
    • error

      public IError error
      The error.
  • Constructor Details

    • Jg

      public Jg()
      Instantiates a new jg.
  • Method Details

    • getResourceString

      public String getResourceString(String key)
      Returns the string from the plugin's resource bundle, or 'key' if not found.
      Parameters:
      key - the key
      Returns:
      the resource string
    • getString

      public String getString(String key, Object[] substitutions)
      Gets the string.
      Parameters:
      key - the key
      substitutions - the substitutions
      Returns:
      the string
    • getResourceBundle

      public ResourceBundle getResourceBundle()
      Returns the plugin's resource bundle,.
      Returns:
      the resource bundle
    • driveGui

      public void driveGui()
      Drive gui.
    • main

      public static void main(String[] args)
      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 merger
      aProgressMonitor - the a progress monitor
      aError - the a error
      inputFile - the input file
      outputDirectory - the output directory
      tds - the tds
      aCas - 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 IOException
      Main for cde.
      Parameters:
      aMerger - the a merger
      aProgressMonitor - the a progress monitor
      aError - the a error
      inputFile - the input file
      outputDirectory - the output directory
      tds - the tds
      aCas - the a cas
      pProjectPathDir - the project path dir
      limitToProjectScope - the limit J cas gen to project scope
      pMergedTypesAddingFeatures - 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 merger
      aProgressMonitor - the a progress monitor
      aError - the a error
      inputFile - the input file
      outputDirectory - the output directory
      tds - the tds
      aCas - the a cas
      jcasTypeClass - the jcas type class
      jcas_TypeClass - the jcas type class
      Throws:
      IOException - Signals that an I/O exception has occurred.
      InstantiationException - the instantiation exception
      IllegalAccessException - 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, IllegalAccessException
      Main generate all types from templates.
      Parameters:
      aMerger - the a merger
      aProgressMonitor - the a progress monitor
      aError - the a error
      inputFile - the input file
      outputDirectory - the output directory
      tds - the tds
      aCas - the a cas
      jcasTypeClass - the jcas type class
      pProjectPathDir - the project path dir
      limitToProjectScope - the limit J cas gen to project scope
      pMergedTypesAddingFeatures - the merged types adding features
      Throws:
      IOException - Signals that an I/O exception has occurred.
      InstantiationException - the instantiation exception
      IllegalAccessException - the illegal access exception
    • main0

      public int main0(String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError)
      Main 0.
      Parameters:
      args - the args
      aMerger - the a merger
      aProgressMonitor - the a progress monitor
      aError - the a error
      Returns:
      the int
    • main1

      public int main1(String[] arguments)
      Arguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxx
      Parameters:
      arguments - the arguments
      Returns:
      the int
    • removePkg

      public static String removePkg(String name)
      Removes the pkg.
      Parameters:
      name - the name
      Returns:
      the string
    • createResourceManager

      public ResourceManager createResourceManager()
      Creates the resource manager.
      Returns:
      the resource manager