1 package org.simantics.db.layer0.variable;
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.Resource;
5 import org.simantics.db.common.request.ResourceRead;
6 import org.simantics.db.exception.DatabaseException;
7 import org.simantics.layer0.Layer0;
9 public class ChildVariableMapRequest extends ResourceRead<VariableMap> {
11 public ChildVariableMapRequest(Resource context) {
16 public VariableMap perform(ReadGraph graph) throws DatabaseException {
17 return graph.getPossibleRelatedValue2(resource, Layer0.getInstance(graph).domainChildren, resource);
18 // Resource value = parameter.getPossibleRepresents(graph);
19 // if(value != null) {
20 // VariableMap valueMap = graph.getPossibleRelatedValue2(value, Layer0.getInstance(graph).domainProperties, this);
21 // if(valueMap != null) return valueMap;
23 // Resource predicate = parameter.getPossiblePredicateResource(graph);
24 // if(predicate != null)
25 // return graph.getPossibleRelatedValue2(predicate, Layer0.getInstance(graph).domainProperties, this);