public class WriteBlockedGraph extends AbstractGraph implements Graph
Graph
. If SecurityManger
is not null
TcManager
checks the TcPermission
.
If read-only permissions are set this wrapper is used instead of Graph
and throws exceptions when add or remove methods are called.Constructor and Description |
---|
WriteBlockedGraph(Graph triples) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Triple e) |
boolean |
addAll(Collection<? extends Triple> c) |
void |
clear() |
ImmutableGraph |
getImmutableGraph()
Returns an ImutableGraph describing the graph at the current point in
time.
|
Iterator |
iterator() |
protected Iterator<Triple> |
performFilter(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
protected int |
performSize() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
contains, containsAll, equals, filter, getLock, isEmpty, performAdd, performAddAll, performClear, performContains, performContainsAll, performGetImmutableGraph, performIsEmpty, performIterator, performRemove, performRemoveAll, performRetainAll, performToArray, performToArray, size, toArray, toArray
toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, containsAll, hashCode, isEmpty, parallelStream, removeIf, size, spliterator, stream, toArray, toArray
public WriteBlockedGraph(Graph triples)
protected int performSize()
performSize
in class AbstractGraph
protected Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter
in class AbstractGraph
public boolean add(Triple e)
add
in interface Collection<Triple>
add
in class AbstractGraph
public boolean addAll(Collection<? extends Triple> c)
addAll
in interface Collection<Triple>
addAll
in class AbstractGraph
public void clear()
clear
in interface Collection<Triple>
clear
in class AbstractGraph
public boolean remove(Object o)
remove
in interface Collection<Triple>
remove
in class AbstractGraph
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Triple>
removeAll
in class AbstractGraph
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Triple>
retainAll
in class AbstractGraph
public Iterator iterator()
iterator
in interface Iterable<Triple>
iterator
in interface Collection<Triple>
iterator
in class AbstractGraph
public ImmutableGraph getImmutableGraph()
Graph
this
is an instance of ImmutableGraph this can
safely return this
.getImmutableGraph
in interface Graph
getImmutableGraph
in class AbstractGraph
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.