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, toArraytoStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, containsAll, hashCode, isEmpty, parallelStream, removeIf, size, spliterator, stream, toArray, toArraypublic WriteBlockedGraph(Graph triples)
protected int performSize()
performSize in class AbstractGraphprotected Iterator<Triple> performFilter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
performFilter in class AbstractGraphpublic boolean add(Triple e)
add in interface Collection<Triple>add in class AbstractGraphpublic boolean addAll(Collection<? extends Triple> c)
addAll in interface Collection<Triple>addAll in class AbstractGraphpublic void clear()
clear in interface Collection<Triple>clear in class AbstractGraphpublic boolean remove(Object o)
remove in interface Collection<Triple>remove in class AbstractGraphpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Triple>removeAll in class AbstractGraphpublic boolean retainAll(Collection<?> c)
retainAll in interface Collection<Triple>retainAll in class AbstractGraphpublic Iterator iterator()
iterator in interface Iterable<Triple>iterator in interface Collection<Triple>iterator in class AbstractGraphpublic ImmutableGraph getImmutableGraph()
Graphthis is an instance of ImmutableGraph this can
safely return this.getImmutableGraph in interface GraphgetImmutableGraph in class AbstractGraphCopyright © 2015–2022 The Apache Software Foundation. All rights reserved.