@Override public boolean add(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { throw new IllegalArgumentException("Statement is filtered out of view"); } return model.add(s, p, o, c); }
@Override public boolean add(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { throw new IllegalArgumentException("Statement is filtered out of view"); } return model.add(s, p, o, c); }
@Override public boolean contains(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { return false; } return model.contains(s, p, o, c); }
@Override public boolean remove(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { return false; } return model.remove(s, p, o, c); }
@Override public boolean remove(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { return false; } return model.remove(s, p, o, c); }
@Override public boolean contains(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { return false; } return model.contains(s, p, o, c); }
@Override public final void removeTermIteration(Iterator<Statement> iter, Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { throw new IllegalStateException(); } removeFilteredTermIteration(iter, s, p, o, c); }
@Override public final void removeTermIteration(Iterator<Statement> iter, Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { throw new IllegalStateException(); } removeFilteredTermIteration(iter, s, p, o, c); }
@Override public Model filter(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { return new EmptyModel(model); } return model.filter(s, p, o, c); }
@Override public Model filter(Resource s, IRI p, Value o, Resource... c) { if (s == null) { s = subj; } if (p == null) { p = pred; } if (o == null) { o = obj; } if (c != null && c.length == 0) { c = contexts; } if (!accept(s, p, o, c)) { return new EmptyModel(model); } return model.filter(s, p, o, c); }