Class AbstractDocument

java.lang.Object
org.apache.uima.caseditor.editor.AbstractDocument
All Implemented Interfaces:
ICasDocument
Direct Known Subclasses:
DocumentUimaImpl

public abstract class AbstractDocument extends Object implements ICasDocument
Abstract base class for document implementations.
  • Constructor Details

    • AbstractDocument

      public AbstractDocument()
  • Method Details

    • addChangeListener

      public void addChangeListener(ICasDocumentListener listener)
      Registers a change listener.
      Specified by:
      addChangeListener in interface ICasDocument
      Parameters:
      listener - the listener
    • removeChangeListener

      public void removeChangeListener(ICasDocumentListener listener)
      Unregisters a change listener.
      Specified by:
      removeChangeListener in interface ICasDocument
      Parameters:
      listener - the listener
    • fireAddedFeatureStructure

      protected void fireAddedFeatureStructure(FeatureStructure annotation)
      Sends an added message to registered listeners.
      Parameters:
      annotation - the annotation
    • fireAddedFeatureStructure

      protected void fireAddedFeatureStructure(Collection<? extends FeatureStructure> annotations)
      Sends an added message to registered listeners.
      Parameters:
      annotations - the annotations
    • fireRemovedFeatureStructure

      protected void fireRemovedFeatureStructure(FeatureStructure annotation)
      Sends a removed message to registered listeners.
      Parameters:
      annotation - the annotation
    • fireRemovedFeatureStructure

      protected void fireRemovedFeatureStructure(Collection<? extends FeatureStructure> annotations)
      Sends a removed message to registered listeners.
      Parameters:
      annotations - the annotations
    • fireUpdatedFeatureStructure

      protected void fireUpdatedFeatureStructure(FeatureStructure annotation)
      Sends an updated message to registered listeners.
      Parameters:
      annotation - the annotation
    • fireUpdatedFeatureStructure

      protected void fireUpdatedFeatureStructure(Collection<? extends FeatureStructure> annotations)
      Sends an updated message to registered listeners.
      Parameters:
      annotations - the annotations
    • fireChanged

      protected void fireChanged()
      Fire changed.
    • fireViewChanged

      protected void fireViewChanged(String oldViewName, String newViewName)
      Fire view changed.
      Parameters:
      oldViewName - the old view name
      newViewName - the new view name
    • getTypeSystemText

      public String getTypeSystemText()
      Description copied from interface: ICasDocument
      Retrieves the string representation of the applied type system.
      Specified by:
      getTypeSystemText in interface ICasDocument
      Returns:
      the string representation of the applied type system