org.jrdf.graph
Interface Container

All Superinterfaces:
Collection<ObjectNode>, Iterable<ObjectNode>
All Known Subinterfaces:
Alternative, Bag, Sequence
All Known Implementing Classes:
AbstractUnorderedContainer, AlternativeImpl, BagImpl, SequenceImpl

public interface Container
extends Collection<ObjectNode>

A Container is a grouping of statements. A container can either be a Alternative, Bag, or Sequence.

See 4.1 RDF Containers.

Alternatives are unordered lists that do not allow duplicates. Bags are unordered lists that allow duplicates. Sequences are ordered lists that allows duplicates.

Currently, this is just an extension of java.util.Collection that throws exceptions when inappropriate objects are used, for example non-ObjectNodes are added.

Version:
$Revision: 1804 $
Author:
Andrew Newman

Method Summary
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray