X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.objmap2%2Fsrc%2Forg%2Fsimantics%2Fobjmap%2Fgraph%2Frules%2Fadapters%2FValueAdapter.java;fp=bundles%2Forg.simantics.objmap2%2Fsrc%2Forg%2Fsimantics%2Fobjmap%2Fgraph%2Frules%2Fadapters%2FValueAdapter.java;h=3d72e6ad5340f8e61ca3545dcb70211823c30ad0;hp=51a0f56ed63bc603513e17e68340da34dabf5f13;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/adapters/ValueAdapter.java b/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/adapters/ValueAdapter.java index 51a0f56ed..3d72e6ad5 100644 --- a/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/adapters/ValueAdapter.java +++ b/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/adapters/ValueAdapter.java @@ -1,21 +1,21 @@ -/******************************************************************************* - * Copyright (c) 2012, 2013 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.objmap.graph.rules.adapters; - -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; - -public interface ValueAdapter { - Resource rangeTypeToDomainType(ReadGraph graph, Class rangeType); - Object domainToRange(Object domainValue); - Object rangeToDomain(Object rangeValue); -} +/******************************************************************************* + * Copyright (c) 2012, 2013 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.objmap.graph.rules.adapters; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; + +public interface ValueAdapter { + Resource rangeTypeToDomainType(ReadGraph graph, Class rangeType); + Object domainToRange(Object domainValue); + Object rangeToDomain(Object rangeValue); +}