X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FVariableInterface.java;h=9ed9784fc23d404d5dd29215f862d8a23d0b1fd5;hp=638ad6923720eb21ed7835603737e95468a23c8a;hb=3c2807a26920491016a1887d2c1a95609c082a19;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableInterface.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableInterface.java index 638ad6923..9ed9784fc 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableInterface.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/VariableInterface.java @@ -1,35 +1,35 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.db.layer0.variable; - -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; -import org.simantics.db.exception.DatabaseException; - -public interface VariableInterface { - /* - * @param uri A full variable URI - */ - Variable getVariable(ReadGraph graph, String uri); - /* - * @param base a resource with URI - * @param uri A relative variable URI - */ - Variable getVariable(ReadGraph graph, Resource base, String suffix); - Variable getVariable(ReadGraph graph, Resource variable); - /* - * A context-dependent object which encodes a variable - */ - Variable getVariable(ReadGraph graph, T context) throws DatabaseException; - Variable getVariable(ReadGraph graph, Variable basedOn, T context) throws DatabaseException; - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.db.layer0.variable; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; + +public interface VariableInterface { + /* + * @param uri A full variable URI + */ + Variable getVariable(ReadGraph graph, String uri); + /* + * @param base a resource with URI + * @param uri A relative variable URI + */ + Variable getVariable(ReadGraph graph, Resource base, String suffix); + Variable getVariable(ReadGraph graph, Resource variable); + /* + * A context-dependent object which encodes a variable + */ + Variable getVariable(ReadGraph graph, T context) throws DatabaseException; + Variable getVariable(ReadGraph graph, Variable basedOn, T context) throws DatabaseException; + +}