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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(ICasDocumentListener listener) Registers a change listener.protected voidfireAddedFeatureStructure(Collection<? extends FeatureStructure> annotations) Sends an added message to registered listeners.protected voidfireAddedFeatureStructure(FeatureStructure annotation) Sends an added message to registered listeners.protected voidFire changed.protected voidfireRemovedFeatureStructure(Collection<? extends FeatureStructure> annotations) Sends a removed message to registered listeners.protected voidfireRemovedFeatureStructure(FeatureStructure annotation) Sends a removed message to registered listeners.protected voidfireUpdatedFeatureStructure(Collection<? extends FeatureStructure> annotations) Sends an updated message to registered listeners.protected voidfireUpdatedFeatureStructure(FeatureStructure annotation) Sends an updated message to registered listeners.protected voidfireViewChanged(String oldViewName, String newViewName) Fire view changed.Retrieves the string representation of the applied type system.voidremoveChangeListener(ICasDocumentListener listener) Unregisters a change listener.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
addChangeListenerin interfaceICasDocument- Parameters:
listener- the listener
-
removeChangeListener
Unregisters a change listener.- Specified by:
removeChangeListenerin 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:ICasDocumentRetrieves the string representation of the applied type system.- Specified by:
getTypeSystemTextin interfaceICasDocument- Returns:
- the string representation of the applied type system
-