anvil.annot
Class AnnotationSet
java.lang.Object
|
+--java.util.Observable
|
+--anvil.annot.AnvilAnnotationNode
|
+--anvil.annot.AnnotationContainer
|
+--anvil.annot.AnnotationSet
- All Implemented Interfaces:
- AnnotationNode
- public class AnnotationSet
- extends AnnotationContainer
Container for unordered elements which are not anchored in
time. Examples: relations, real-world objects.
Method Summary |
java.util.List |
getElements()
|
void |
print()
Prints contents of the set to stdout. |
boolean |
removeElement(AnnotationElement el)
Removes element from this container, including all links pointing
from other elements to this one, also removing all dependent
elements. |
java.lang.String |
toString()
|
Methods inherited from class anvil.annot.AnnotationContainer |
addElement, elementChanged, getAnnotation, getAttributeNames, getAttributeType, getElementCollection, getNumOfElements, getReciprocalLinkAttributes, getSpec, indexElements, isEmpty, query, replaceAttributeValue, setName, unlinkElement, writeAnvilFile |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationSet
public AnnotationSet(Annotation annot,
GroupNode parent,
NodeSpec spec)
getElements
public java.util.List getElements()
print
public void print()
- Prints contents of the set to stdout.
- Specified by:
print
in class AnnotationContainer
removeElement
public boolean removeElement(AnnotationElement el)
- Description copied from class:
AnnotationContainer
- Removes element from this container, including all links pointing
from other elements to this one, also removing all dependent
elements.
- Specified by:
removeElement
in class AnnotationContainer
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object