1 package org.simantics.db.layer0.variable;
3 import org.simantics.databoard.binding.Binding;
4 import org.simantics.databoard.type.Datatype;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.WriteGraph;
7 import org.simantics.db.exception.DatabaseException;
9 public interface ValueAccessor {
10 Object getValue(ReadGraph graph, Variable context) throws DatabaseException;
11 Object getValue(ReadGraph graph, Variable context, Binding binding) throws DatabaseException;
12 void setValue(WriteGraph graph, Variable context, Object value) throws DatabaseException;
13 void setValue(WriteGraph graph, Variable context, Object value, Binding binding) throws DatabaseException;
14 Datatype getDatatype(ReadGraph graph, Variable context) throws DatabaseException;