public abstract class FilteredModel extends AbstractModel
| Modifier and Type | Field and Description |
|---|---|
protected Resource[] |
contexts |
protected Value |
obj |
protected IRI |
pred |
protected Resource |
subj |
| Modifier | Constructor and Description |
|---|---|
protected |
FilteredModel(AbstractModel model,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Resource s,
IRI p,
Value o,
Resource... c) |
boolean |
contains(Resource s,
IRI p,
Value o,
Resource... c) |
Model |
filter(Resource s,
IRI p,
Value o,
Resource... c) |
Optional<Namespace> |
getNamespace(String prefix) |
Set<Namespace> |
getNamespaces() |
boolean |
remove(Resource s,
IRI p,
Value o,
Resource... c) |
protected abstract void |
removeFilteredTermIteration(Iterator<Statement> iter,
Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Called by aggregate sets when a term has been removed from a term iterator.
|
Optional<Namespace> |
removeNamespace(String prefix) |
void |
removeTermIteration(Iterator<Statement> iter,
Resource s,
IRI p,
Value o,
Resource... c)
Called by aggregate sets when a term has been removed from a term iterator.
|
void |
setNamespace(Namespace namespace) |
Namespace |
setNamespace(String prefix,
String name) |
int |
size() |
add, addAll, clear, clear, closeIterator, contains, containsAll, contexts, isEmpty, objects, predicates, remove, removeAll, retainAll, subjects, toArray, toArray, unmodifiableequals, hashCodeiterator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, filter, getStatements, removeequals, hashCode, iterator, spliteratorparallelStream, removeIf, streamprotected Resource subj
protected IRI pred
protected Value obj
protected Resource[] contexts
protected FilteredModel(AbstractModel model, Resource subj, IRI pred, Value obj, Resource... contexts)
public void setNamespace(Namespace namespace)
public int size()
size in interface Collection<Statement>size in interface Set<Statement>size in class AbstractCollection<Statement>public final void removeTermIteration(Iterator<Statement> iter, Resource s, IRI p, Value o, Resource... c)
AbstractModelremoveTermIteration in class AbstractModeliter - The iterator used to navigate the live set (never null)s - the subject term to be removed or nullp - the predicate term to be removed or nullo - the object term to be removed or nullc - an array of one context term to be removed or an empty arrayprotected abstract void removeFilteredTermIteration(Iterator<Statement> iter, Resource subj, IRI pred, Value obj, Resource... contexts)
iter - The iterator used to navigate the live set (never null)subj - the subject term to be removed or nullpred - the predicate term to be removed or nullobj - the object term to be removed or nullcontexts - an array of one context term to be removed or an empty arrayCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.