1 package org.simantics.db.layer0.variable;
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.Resource;
5 import org.simantics.db.exception.DatabaseException;
7 public class StandardVariableBuilder<Node> implements VariableBuilder<Node> {
10 public Variable buildChild(ReadGraph graph, Variable parent, VariableNode<Node> node, Resource child) {
11 return new StandardGraphChildVariable(parent, node, child);
15 public Variable buildProperty(ReadGraph graph, Variable parent, VariableNode<Node> node, Resource subject, Resource predicate) throws DatabaseException {
16 return new StandardGraphPropertyVariable(graph, parent, node, subject, predicate);