]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/ChildVariableMapRequest.java
Merge "Documented difference of RuntimeEnvironmentRequest and Runti...quest2" into...
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / ChildVariableMapRequest.java
1 package org.simantics.db.layer0.variable;
2
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;
8
9 public class ChildVariableMapRequest extends ResourceRead<VariableMap> {
10
11         public ChildVariableMapRequest(Resource context) {
12                 super(context);
13         }
14
15         @Override
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;
22 //              }
23 //              Resource predicate = parameter.getPossiblePredicateResource(graph);
24 //              if(predicate != null)
25 //                      return graph.getPossibleRelatedValue2(predicate, Layer0.getInstance(graph).domainProperties, this);
26 //              return null;
27         }
28
29 }