]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/binaryPredicates/BinaryPredicateAdapter.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.layer0.utils / src / org / simantics / layer0 / utils / binaryPredicates / BinaryPredicateAdapter.java
1 package org.simantics.layer0.utils.binaryPredicates;
2
3 import java.util.Collection;
4
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;
10
11
12 public class BinaryPredicateAdapter extends BinaryPredicate {
13
14         @Override
15         public boolean supportsGetObjects() {
16                 return false;
17         }
18
19         @Override
20         public boolean supportsGetSubjects() {
21                 return false;
22         }
23
24         @Override
25         public boolean supportsGetStatements() {
26                 return false;
27         }
28
29         @Override
30         public Collection<Resource> getObjects(ReadGraph g, Resource subject)
31                         throws DatabaseException {
32                 throw new UnsupportedOperationException();
33         }
34
35         @Override
36         public Collection<Resource> getSubjects(ReadGraph g, Resource object)
37                         throws DatabaseException {
38                 throw new UnsupportedOperationException();
39         }
40
41         @Override
42         public Collection<Pair<Resource, Resource>> getStatements(ReadGraph g)
43                         throws DatabaseException {
44                 throw new UnsupportedOperationException();
45         }
46
47         @Override
48         public boolean has(ReadGraph g, Resource subject, Resource object)
49                         throws DatabaseException {
50                 throw new UnsupportedOperationException();
51         }
52
53         @Override
54         public boolean supportsAdditions() {
55                 return false;
56         }
57
58         @Override
59         public boolean supportsRemovals() {
60                 return false;
61         }
62
63         @Override
64         public void add(WriteGraph g, Resource subject, Resource object)
65                         throws DatabaseException {
66                 throw new UnsupportedOperationException();              
67         }
68
69         @Override
70         public void remove(WriteGraph g, Resource subject, Resource object)
71                         throws DatabaseException {
72                 throw new UnsupportedOperationException();              
73         }
74         
75         
76 }