org.openrdf.repository.object.behaviours
Class RDFSContainer

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

public abstract class RDFSContainer
extends AbstractList<Object>
implements Refreshable, Mergeable, RDFObject

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

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
RDFSContainer()
           
 
Method Summary
 void add(int index, Object obj)
           
 void clear()
           
 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, 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 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

RDFSContainer

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

get

public Object get(int index)
Specified by:
get in interface List<Object>
Specified by:
get 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>

set

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

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

remove

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

clear

public void clear()
Specified by:
clear in interface Collection<Object>
Specified by:
clear in interface List<Object>
Overrides:
clear 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-2011 James Leigh Services Inc.. All Rights Reserved.