public class JenaGraphAdaptor extends AbstractMGraph
Constructor and Description |
---|
JenaGraphAdaptor(com.hp.hpl.jena.graph.Graph jenaGraph)
Constructs an MGraph based on the supplied jena Graph.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
performAdd(Triple triple)
A subclass of
AbstractTripleCollection should override
this method instead of add for graph event support to be
added. |
Iterator<Triple> |
performFilter(NonLiteral subject,
UriRef predicate,
Resource object)
A subclass of
AbstractTripleCollection should override
this method instead of filter for graph event support to be
added. |
boolean |
performRemove(Triple triple)
A subclass of
AbstractTripleCollection should override
this method instead of remove for graph event support to be
added. |
int |
size() |
getGraph
add, addGraphListener, addGraphListener, contains, dispatchEvent, filter, iterator, remove, removeAll, removeGraphListener
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addGraphListener, addGraphListener, filter, removeGraphListener
public JenaGraphAdaptor(com.hp.hpl.jena.graph.Graph jenaGraph)
jenaGraph
- public void clear()
clear
in interface Collection<Triple>
clear
in class AbstractCollection<Triple>
public int size()
size
in interface Collection<Triple>
size
in class AbstractCollection<Triple>
public Iterator<Triple> performFilter(NonLiteral subject, UriRef predicate, Resource object)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of filter
for graph event support to be
added. The Iterator returned by filter
will dispatch a
GraphEvent after invoking the remove method of the iterator returned by
this method.performFilter
in class AbstractTripleCollection
public boolean performAdd(Triple triple)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of add
for graph event support to be
added.performAdd
in class AbstractTripleCollection
triple
- The triple to be added to the triple collectionpublic boolean performRemove(Triple triple)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of remove
for graph event support to be
added.performRemove
in class AbstractTripleCollection
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.