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.


Field Summary
 
Fields inherited from class anvil.annot.AnnotationContainer
elements, index2el
 
Fields inherited from class anvil.annot.AnvilAnnotationNode
annotation, name, open, parent, spec, visible
 
Constructor Summary
AnnotationSet(Annotation annot, GroupNode parent, NodeSpec spec)
           
 
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 anvil.annot.AnvilAnnotationNode
getFirstHidden, getName, getParent, getShortName, isOpen, isVisible, setOpen, setVisible
 
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
 

Constructor Detail

AnnotationSet

public AnnotationSet(Annotation annot,
                     GroupNode parent,
                     NodeSpec spec)
Method Detail

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