net.fortytwo.sesametools
Class ArrayListGraphImpl

java.lang.Object
  extended by java.util.AbstractCollection<org.openrdf.model.Statement>
      extended by net.fortytwo.sesametools.ArrayListGraphImpl
All Implemented Interfaces:
Serializable, Iterable<org.openrdf.model.Statement>, Collection<org.openrdf.model.Statement>, org.openrdf.model.Graph

public class ArrayListGraphImpl
extends AbstractCollection<org.openrdf.model.Statement>
implements org.openrdf.model.Graph

Author:
Arjohn Kampman
See Also:
Serialized Form

Field Summary
protected  List<org.openrdf.model.Statement> statements
           
protected  org.openrdf.model.ValueFactory valueFactory
           
 
Constructor Summary
ArrayListGraphImpl()
           
ArrayListGraphImpl(Collection<? extends org.openrdf.model.Statement> statements)
           
ArrayListGraphImpl(org.openrdf.model.ValueFactory valueFactory)
           
ArrayListGraphImpl(org.openrdf.model.ValueFactory valueFactory, Collection<? extends org.openrdf.model.Statement> statements)
           
 
Method Summary
 boolean add(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
 boolean add(org.openrdf.model.Statement st)
           
 org.openrdf.model.ValueFactory getValueFactory()
           
 Iterator<org.openrdf.model.Statement> iterator()
           
 Iterator<org.openrdf.model.Statement> match(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
 void setValueFactory(org.openrdf.model.ValueFactory valueFactory)
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

statements

protected List<org.openrdf.model.Statement> statements

valueFactory

protected transient org.openrdf.model.ValueFactory valueFactory
Constructor Detail

ArrayListGraphImpl

public ArrayListGraphImpl(org.openrdf.model.ValueFactory valueFactory)

ArrayListGraphImpl

public ArrayListGraphImpl()

ArrayListGraphImpl

public ArrayListGraphImpl(org.openrdf.model.ValueFactory valueFactory,
                          Collection<? extends org.openrdf.model.Statement> statements)

ArrayListGraphImpl

public ArrayListGraphImpl(Collection<? extends org.openrdf.model.Statement> statements)
Method Detail

getValueFactory

public org.openrdf.model.ValueFactory getValueFactory()
Specified by:
getValueFactory in interface org.openrdf.model.Graph

setValueFactory

public void setValueFactory(org.openrdf.model.ValueFactory valueFactory)

iterator

public Iterator<org.openrdf.model.Statement> iterator()
Specified by:
iterator in interface Iterable<org.openrdf.model.Statement>
Specified by:
iterator in interface Collection<org.openrdf.model.Statement>
Specified by:
iterator in class AbstractCollection<org.openrdf.model.Statement>

size

public int size()
Specified by:
size in interface Collection<org.openrdf.model.Statement>
Specified by:
size in class AbstractCollection<org.openrdf.model.Statement>

add

public boolean add(org.openrdf.model.Statement st)
Specified by:
add in interface Collection<org.openrdf.model.Statement>
Overrides:
add in class AbstractCollection<org.openrdf.model.Statement>

add

public boolean add(org.openrdf.model.Resource subj,
                   org.openrdf.model.URI pred,
                   org.openrdf.model.Value obj,
                   org.openrdf.model.Resource... contexts)
Specified by:
add in interface org.openrdf.model.Graph

match

public Iterator<org.openrdf.model.Statement> match(org.openrdf.model.Resource subj,
                                                   org.openrdf.model.URI pred,
                                                   org.openrdf.model.Value obj,
                                                   org.openrdf.model.Resource... contexts)
Specified by:
match in interface org.openrdf.model.Graph


Copyright © 2013. All Rights Reserved.