|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractSet | +--gate.annotation.AnnotationSetImpl | +--gate.annotation.DatabaseAnnotationSetImpl
Nested Class Summary |
Nested classes inherited from class gate.annotation.AnnotationSetImpl |
AnnotationSetImpl.VerboseHashMap |
Constructor Summary | |
DatabaseAnnotationSetImpl(Collection c)
Construction from Collection (which must be an AnnotationSet) |
|
DatabaseAnnotationSetImpl(Document doc)
Construction from Document. |
|
DatabaseAnnotationSetImpl(Document doc,
Collection c)
Construction from Document and name. |
|
DatabaseAnnotationSetImpl(Document doc,
String name)
Construction from Document and name. |
|
DatabaseAnnotationSetImpl(Document doc,
String name,
Collection c)
Construction from Document and name. |
Method Summary | |
boolean |
add(Object o)
Add an existing annotation. |
void |
annotationUpdated(AnnotationEvent e)
Called when an Annotation has been updated |
void |
assertValid()
|
Collection |
getAddedAnnotations()
|
Collection |
getChangedAnnotations()
|
Collection |
getRemovedAnnotations()
|
boolean |
remove(Object o)
Remove an element from this set. |
void |
resourceAdopted(DatastoreEvent evt)
Called by a datastore when a new resource has been adopted |
void |
resourceDeleted(DatastoreEvent evt)
Called by a datastore when a resource has been deleted |
void |
resourceWritten(DatastoreEvent evt)
Called by a datastore when a resource has been wrote into the datastore |
String |
toString()
|
Methods inherited from class gate.annotation.AnnotationSetImpl |
add, add, add, addAnnotationSetListener, addGateListener, clone, edit, firstNode, get, get, get, get, get, get, get, get, get, get, getAllTypes, getContained, getDocument, getName, iterator, lastNode, nextNode, removeAnnotationSetListener, removeGateListener, size |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.AnnotationSet |
add, add, add, addAnnotationSetListener, addGateListener, firstNode, get, get, get, get, get, get, get, get, get, get, getAllTypes, getContained, getDocument, getName, iterator, lastNode, nextNode, removeAnnotationSetListener, removeGateListener, size |
Methods inherited from interface java.util.Set |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
Constructor Detail |
public DatabaseAnnotationSetImpl(Document doc)
public DatabaseAnnotationSetImpl(Document doc, String name)
public DatabaseAnnotationSetImpl(Document doc, Collection c)
public DatabaseAnnotationSetImpl(Document doc, String name, Collection c)
public DatabaseAnnotationSetImpl(Collection c) throws ClassCastException
Method Detail |
public void assertValid()
public String toString()
toString
in class AbstractCollection
public void resourceAdopted(DatastoreEvent evt)
resourceAdopted
in interface DatastoreListener
public void resourceDeleted(DatastoreEvent evt)
resourceDeleted
in interface DatastoreListener
public void resourceWritten(DatastoreEvent evt)
resourceWritten
in interface DatastoreListener
public Collection getAddedAnnotations()
getAddedAnnotations
in interface EventAwareAnnotationSet
public Collection getChangedAnnotations()
getChangedAnnotations
in interface EventAwareAnnotationSet
public Collection getRemovedAnnotations()
getRemovedAnnotations
in interface EventAwareAnnotationSet
public void annotationUpdated(AnnotationEvent e)
AnnotationListener
Annotation
has been updated
annotationUpdated
in interface AnnotationListener
public boolean add(Object o) throws ClassCastException
add
in interface AnnotationSet
add
in class AnnotationSetImpl
ClassCastException
public boolean remove(Object o) throws ClassCastException
remove
in interface AnnotationSet
remove
in class AnnotationSetImpl
ClassCastException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |