1 package org.simantics.layer0.utils.binaryPredicates;
3 import java.util.Collection;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.Resource;
7 import org.simantics.db.WriteGraph;
8 import org.simantics.db.exception.DatabaseException;
9 import org.simantics.utils.datastructures.Pair;
12 public class BinaryPredicateAdapter extends BinaryPredicate {
15 public boolean supportsGetObjects() {
20 public boolean supportsGetSubjects() {
25 public boolean supportsGetStatements() {
30 public Collection<Resource> getObjects(ReadGraph g, Resource subject)
31 throws DatabaseException {
32 throw new UnsupportedOperationException();
36 public Collection<Resource> getSubjects(ReadGraph g, Resource object)
37 throws DatabaseException {
38 throw new UnsupportedOperationException();
42 public Collection<Pair<Resource, Resource>> getStatements(ReadGraph g)
43 throws DatabaseException {
44 throw new UnsupportedOperationException();
48 public boolean has(ReadGraph g, Resource subject, Resource object)
49 throws DatabaseException {
50 throw new UnsupportedOperationException();
54 public boolean supportsAdditions() {
59 public boolean supportsRemovals() {
64 public void add(WriteGraph g, Resource subject, Resource object)
65 throws DatabaseException {
66 throw new UnsupportedOperationException();
70 public void remove(WriteGraph g, Resource subject, Resource object)
71 throws DatabaseException {
72 throw new UnsupportedOperationException();