org.mmbase.module.corebuilders
Class TypeRel.TypeRelSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.TreeSet<MMObjectNode>
              extended by org.mmbase.module.corebuilders.TypeRel.TypeRelSet
All Implemented Interfaces:
Serializable, Cloneable, Iterable<MMObjectNode>, Collection<MMObjectNode>, NavigableSet<MMObjectNode>, Set<MMObjectNode>, SortedSet<MMObjectNode>
Enclosing class:
TypeRel

protected class TypeRel.TypeRelSet
extends TreeSet<MMObjectNode>

A TypeRelSet is a Set of typerel nodes. The TypeRel builder maintains such a Set of all typerel nodes for quick reference. TypeRelSets are also instantiated when doing queries on TypeRel like getAllowedRelations(MMObjectBuilder) etc.

Since:
MMBase-1.6.2
See Also:
Serialized Form

Constructor Summary
protected TypeRel.TypeRelSet()
           
 
Method Summary
 boolean add(MMObjectNode node)
           
(package private)  SortedSet<MMObjectNode> getBySource(int source)
           
(package private)  SortedSet<MMObjectNode> getBySource(MMObjectBuilder source)
           
(package private)  SortedSet<MMObjectNode> getBySourceDestination(int source, int destination)
           
(package private)  SortedSet<MMObjectNode> getBySourceDestination(MMObjectBuilder source, MMObjectBuilder destination)
           
(package private)  SortedSet<MMObjectNode> getBySourceDestinationRole(int source, int destination, int role)
           
 
Methods inherited from class java.util.TreeSet
addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

TypeRel.TypeRelSet

protected TypeRel.TypeRelSet()
Method Detail

add

public boolean add(MMObjectNode node)
Specified by:
add in interface Collection<MMObjectNode>
Specified by:
add in interface Set<MMObjectNode>
Overrides:
add in class TreeSet<MMObjectNode>

getBySource

SortedSet<MMObjectNode> getBySource(MMObjectBuilder source)

getBySource

SortedSet<MMObjectNode> getBySource(int source)

getBySourceDestination

SortedSet<MMObjectNode> getBySourceDestination(MMObjectBuilder source,
                                               MMObjectBuilder destination)

getBySourceDestination

SortedSet<MMObjectNode> getBySourceDestination(int source,
                                               int destination)

getBySourceDestinationRole

SortedSet<MMObjectNode> getBySourceDestinationRole(int source,
                                                   int destination,
                                                   int role)


MMBase 2.0-SNAPSHOT - null