Class DotCorpus

java.lang.Object
org.apache.uima.caseditor.core.model.dotcorpus.DotCorpus

public class DotCorpus extends Object
This class contains all project specific configuration parameters. Note: Use DotCorpusSerialzer to read or write an instance of this class to or from a byte stream.
  • Field Details

    • EDITOR_LINE_LENGTH_HINT_DEFAULT

      public static final int EDITOR_LINE_LENGTH_HINT_DEFAULT
      The default value for editor line length hint.
      See Also:
  • Constructor Details

    • DotCorpus

      public DotCorpus()
  • Method Details

    • getTypeSystemFileName

      @Deprecated public String getTypeSystemFileName()
      Deprecated.
      Retrieves type system name parameter.
      Returns:
      type system name parameter
    • setTypeSystemFilename

      @Deprecated public void setTypeSystemFilename(String name)
      Deprecated.
      Sets type system name parameter.
      Parameters:
      name - type system name parameter
    • getCasProcessorFolderNames

      @Deprecated public Collection<String> getCasProcessorFolderNames()
      Deprecated.
      Retrieves the uima config folder name parameter.
      Returns:
      uima config folder name parameter.
    • addCasProcessorFolder

      @Deprecated public void addCasProcessorFolder(String folder)
      Deprecated.
      Sets the uima config folder name parameter.
      Parameters:
      folder - uima config folder name parameter.
    • removeCasProcessorFolder

      @Deprecated public void removeCasProcessorFolder(String folder)
      Deprecated.
      Removes the cas processor folder.
      Parameters:
      folder - the folder
    • addCorpusFolder

      @Deprecated public void addCorpusFolder(String name)
      Deprecated.
      Adds a corpus folder.
      Parameters:
      name - the name
    • removeCorpusFolder

      @Deprecated public void removeCorpusFolder(String name)
      Deprecated.
      Removes the given corpus folder.
      Parameters:
      name - the name
    • getCorpusFolderNameList

      @Deprecated public Collection<String> getCorpusFolderNameList()
      Deprecated.
      Retrieves the list of all corpus folders.
      Returns:
      corpus folder list
    • getEditorLineLengthHint

      @Deprecated public int getEditorLineLengthHint()
      Deprecated.
      setting was moved to preference store
      Retrieves the editor line length hint parameter.
      Returns:
      line length hint
    • setEditorLineLength

      @Deprecated public void setEditorLineLength(int lineLengthHint)
      Deprecated.
      setting was moved to preference store
      Sets the editor line length hint parameter.
      Parameters:
      lineLengthHint - the new editor line length
    • getAnnotationStyles

      public Collection<AnnotationStyle> getAnnotationStyles()
      Retrieves the annotation styles.
      Returns:
      - the annotation styles
    • getShownTypes

      public Collection<String> getShownTypes()
      Gets the shown types.
      Returns:
      the shown types
    • setShownType

      public void setShownType(String type)
      Sets the shown type.
      Parameters:
      type - the new shown type
    • removeShownType

      public void removeShownType(String type)
      Removes the shown type.
      Parameters:
      type - the type
    • setStyle

      public void setStyle(AnnotationStyle style)
      Adds an AnnotationStyle. TODO: move style stuff to nlp project
      Parameters:
      style - the new style
    • removeStyle

      public void removeStyle(String name)
      Removes an AnnotationStyle for the given name, does nothing if not existent.
      Parameters:
      name - the name
    • getAnnotation

      public AnnotationStyle getAnnotation(Type type)
      Retrieves the AnnotationStyle for the given type or null if not available.
      Parameters:
      type - the type
      Returns:
      the requested style or null if none
    • hashCode

      public int hashCode()
      Always returns hash code 0.
      Overrides:
      hashCode in class Object
      Returns:
      the int
    • equals

      public boolean equals(Object obj)
      Checks if the given object is equal to the current instance.
      Overrides:
      equals in class Object
      Parameters:
      obj - the obj
      Returns:
      true, if successful