Class PrefsMediator

java.lang.Object
org.apache.uima.tools.docanalyzer.PrefsMediator

public class PrefsMediator extends Object
The Class PrefsMediator.
  • Constructor Details

    • PrefsMediator

      public PrefsMediator()
      Instantiates a new prefs mediator.
  • Method Details

    • restorePreferences

      public void restorePreferences()
      Restore preferences.
    • savePreferences

      public void savePreferences()
      Save preferences.
    • getInputDir

      public String getInputDir()
      Gets the input dir.
      Returns:
      Returns the inputDir.
    • setInputDir

      public void setInputDir(String inputDir)
      Sets the input dir.
      Parameters:
      inputDir - The inputDir to set.
    • getOutputDir

      public String getOutputDir()
      Gets the output dir.
      Returns:
      Returns the outputDir.
    • setOutputDir

      public void setOutputDir(String outputDir)
      Sets the output dir.
      Parameters:
      outputDir - The outputDir to set.
    • setOutputDirForInteractiveMode

      public void setOutputDirForInteractiveMode(String outputDir, String outputDirToSave)
      Special case of setOutpuDir needed for interactive mode. In interactive mode, we append "/interactive_out" to the end, but we don't want to save this in the preferences. To support that, this method takes one parameter which is the output dir to be set and used by the application, and a second parameter to set the directory that is saved to the preferences.
      Parameters:
      outputDir - the output dir to set
      outputDirToSave - the output dir to save to the preferences
    • getTAEfile

      public String getTAEfile()
      Gets the TA efile.
      Returns:
      Returns the tAEdir.
    • getTAEPath

      public String getTAEPath()
      get the path to the TAE that is where the StyleMap file should be written.
      Returns:
      the TAE path
    • getTAEFileNameRoot

      public String getTAEFileNameRoot()
      Gets the TAE file name root.
      Returns:
      the TAE file name root
    • setTAEfile

      public void setTAEfile(String edir)
      Sets the TA efile.
      Parameters:
      edir - set the TAE directory
    • getEncoding

      public String getEncoding()
      Gets the encoding.
      Returns:
      Returns the encoding.
    • setEncoding

      public void setEncoding(String encoding)
      Sets the encoding.
      Parameters:
      encoding - The encoding to set.
    • getInputFileFormat

      public String getInputFileFormat()
      Gets the input file format.
      Returns:
      Returns the input file format.
    • setInputFileFormat

      public void setInputFileFormat(String inputFileFormat)
      Sets the input file format.
      Parameters:
      inputFileFormat - The input file format to set.
    • getLanguage

      public String getLanguage()
      Gets the language.
      Returns:
      Returns the language.
    • setLanguage

      public void setLanguage(String language)
      Sets the language.
      Parameters:
      language - The language to set.
    • getViewType

      public String getViewType()
      Gets the view type.
      Returns:
      Returns the view type.
    • setViewType

      public void setViewType(String viewType)
      Sets the view type.
      Parameters:
      viewType - The view type to set.
    • getXmlTag

      public String getXmlTag()
      Gets the xml tag.
      Returns:
      Returns the xmlTag.
    • setXmlTag

      public void setXmlTag(String xmlTag)
      Sets the xml tag.
      Parameters:
      xmlTag - The xmlTag to set.
    • getLenient

      public Boolean getLenient()
      Gets the lenient.
      Returns:
      Returns lenient.
    • setLenient

      public void setLenient(Boolean lenient)
      Sets the lenient.
      Parameters:
      lenient - The lenient to set.
    • getStylemapFile

      public File getStylemapFile()
      returns the new edited stylemap file.
      Returns:
      the stylemap file
    • setDocButtons

      public void setDocButtons(JButton run, JButton inter, JButton view)
      Sets the doc buttons.
      Parameters:
      run - the run
      inter - the inter
      view - the view
    • setFileSelectors

      public void setFileSelectors(FileSelector input, FileSelector output, FileSelector xml)
      Sets the file selectors.
      Parameters:
      input - the input
      output - the output
      xml - the xml
    • fieldFocusLost

      public void fieldFocusLost()
      Field focus lost.