org.openrdf.repository.object.behaviours
Class RDFList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<Object>
              extended by org.openrdf.repository.object.behaviours.RDFList
All Implemented Interfaces:
Iterable<Object>, Collection<Object>, List<Object>, RDFObject, Mergeable, Refreshable

public abstract class RDFList
extends AbstractSequentialList<Object>
implements Refreshable, Mergeable, RDFObject

Java instance for rdf:List as a familiar interface to manipulate this List. This implemention can only be modified when in autoCommit (autoFlush), or when read uncommitted is supported.

Author:
James Leigh

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.openrdf.repository.object.RDFObject
GET_CONNECTION, GET_RESOURCE
 
Constructor Summary
RDFList()
           
 
Method Summary
 ListIterator<Object> listIterator(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.
 int size()
           
 String toString()
           
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, 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 org.openrdf.repository.object.RDFObject
getObjectConnection, getResource
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

RDFList

public RDFList()
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

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>

listIterator

public ListIterator<Object> listIterator(int index)
Specified by:
listIterator in interface List<Object>
Specified by:
listIterator in class AbstractSequentialList<Object>

toString

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


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.