package org.simantics.db.layer0.variable; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.common.adaption.SimpleContextualAdapter; import org.simantics.db.exception.DatabaseException; public class ResourcePropertyVariableAdapter extends SimpleContextualAdapter { @Override public Variable adapt(ReadGraph graph, Resource source, ModelledVariablePropertyDescriptor context) throws DatabaseException { return new StandardGraphResourcePropertyVariable(graph, context.getVariable(), context.getSubject(), context.getProperty()); } }