org.openrdf.elmo.sesame.behaviours
Class SesameContainer

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<Object>
          extended by org.openrdf.elmo.sesame.behaviours.SesameContainer
All Implemented Interfaces:
Iterable<Object>, Collection<Object>, List<Object>, Mergeable, Refreshable
Direct Known Subclasses:
SesameContainerDisabler

public class SesameContainer
extends AbstractList<Object>
implements List<Object>, Refreshable, Mergeable

This behaviour provides a java.util.List interface for RDF containers.

Author:
James Leigh

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SesameContainer(Entity bean)
           
 
Method Summary
 void add(int index, Object obj)
           
 Object get(int index)
           
 void merge(Object source)
          Initialises the values of this instance with none-null values of the source Object.
 void refresh()
          Flushes the local state of the entity forcing it to refresh.
 Object remove(int index)
           
 Object set(int index, Object obj)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray
 

Constructor Detail

SesameContainer

public SesameContainer(Entity bean)
Method Detail

refresh

public void refresh()
Description copied from interface: Refreshable
Flushes the local state of the entity forcing it to refresh.

Specified by:
refresh in interface Refreshable

merge

public void merge(Object source)
Description copied from interface: Mergeable
Initialises the values of this instance with none-null values of the source Object.

Specified by:
merge in interface Mergeable

set

public Object set(int index,
                  Object obj)
Specified by:
set in interface List<Object>
Overrides:
set in class AbstractList<Object>

add

public void add(int index,
                Object obj)
Specified by:
add in interface List<Object>
Overrides:
add in class AbstractList<Object>

remove

public Object remove(int index)
Specified by:
remove in interface List<Object>
Overrides:
remove in class AbstractList<Object>

get

public Object get(int index)
Specified by:
get in interface List<Object>
Specified by:
get in class AbstractList<Object>

size

public int size()
Specified by:
size in interface Collection<Object>
Specified by:
size in interface List<Object>
Specified by:
size in class AbstractCollection<Object>

toString

public String toString()
Overrides:
toString in class AbstractCollection<Object>


Copyright © 2004-2008 Aduna. All Rights Reserved.