Package org.apache.uima.caseditor.editor
Class AbstractDocument
java.lang.Object
org.apache.uima.caseditor.editor.AbstractDocument
- All Implemented Interfaces:
ICasDocument
- Direct Known Subclasses:
DocumentUimaImpl
Abstract base class for document implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(ICasDocumentListener listener) Registers a change listener.protected void
fireAddedFeatureStructure
(Collection<? extends FeatureStructure> annotations) Sends an added message to registered listeners.protected void
fireAddedFeatureStructure
(FeatureStructure annotation) Sends an added message to registered listeners.protected void
Fire changed.protected void
fireRemovedFeatureStructure
(Collection<? extends FeatureStructure> annotations) Sends a removed message to registered listeners.protected void
fireRemovedFeatureStructure
(FeatureStructure annotation) Sends a removed message to registered listeners.protected void
fireUpdatedFeatureStructure
(Collection<? extends FeatureStructure> annotations) Sends an updated message to registered listeners.protected void
fireUpdatedFeatureStructure
(FeatureStructure annotation) Sends an updated message to registered listeners.protected void
fireViewChanged
(String oldViewName, String newViewName) Fire view changed.Retrieves the string representation of the applied type system.void
removeChangeListener
(ICasDocumentListener listener) Unregisters a change listener.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.uima.caseditor.editor.ICasDocument
addFeatureStructure, addFeatureStructures, changed, getAnnotations, getCAS, getType, removeFeatureStructure, removeFeatureStructures, switchView, update, updateFeatureStructure
-
Constructor Details
-
AbstractDocument
public AbstractDocument()
-
-
Method Details
-
addChangeListener
Registers a change listener.- Specified by:
addChangeListener
in interfaceICasDocument
- Parameters:
listener
- the listener
-
removeChangeListener
Unregisters a change listener.- Specified by:
removeChangeListener
in interfaceICasDocument
- Parameters:
listener
- the listener
-
fireAddedFeatureStructure
Sends an added message to registered listeners.- Parameters:
annotation
- the annotation
-
fireAddedFeatureStructure
Sends an added message to registered listeners.- Parameters:
annotations
- the annotations
-
fireRemovedFeatureStructure
Sends a removed message to registered listeners.- Parameters:
annotation
- the annotation
-
fireRemovedFeatureStructure
Sends a removed message to registered listeners.- Parameters:
annotations
- the annotations
-
fireUpdatedFeatureStructure
Sends an updated message to registered listeners.- Parameters:
annotation
- the annotation
-
fireUpdatedFeatureStructure
Sends an updated message to registered listeners.- Parameters:
annotations
- the annotations
-
fireChanged
protected void fireChanged()Fire changed. -
fireViewChanged
Fire view changed.- Parameters:
oldViewName
- the old view namenewViewName
- the new view name
-
getTypeSystemText
Description copied from interface:ICasDocument
Retrieves the string representation of the applied type system.- Specified by:
getTypeSystemText
in interfaceICasDocument
- Returns:
- the string representation of the applied type system
-