X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.objmap2%2Fsrc%2Forg%2Fsimantics%2Fobjmap%2Fgraph%2Fschema%2FILinkType.java;fp=bundles%2Forg.simantics.objmap2%2Fsrc%2Forg%2Fsimantics%2Fobjmap%2Fgraph%2Fschema%2FILinkType.java;h=2a3c1617d6114a2d530e4cfa3b89d5ab74c5a224;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=ca5036de46de2585c9c0b7a3c99f3ba3e6b9e6b2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/ILinkType.java b/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/ILinkType.java index ca5036de4..2a3c1617d 100644 --- a/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/ILinkType.java +++ b/bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/ILinkType.java @@ -1,32 +1,32 @@ -/******************************************************************************* - * Copyright (c) 2007, 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.schema; - -import org.simantics.objmap.backward.IBackwardLinkType; -import org.simantics.objmap.bidirectional.IBidirectionalMappingRule; -import org.simantics.objmap.forward.IForwardLinkType; - -/** - * Contains rules for how a link should be created and maintained. - * @author Hannu Niemistö - */ -public interface ILinkType extends IBidirectionalMappingRule, IBackwardLinkType, IForwardLinkType { - /** - * Creates a domain element based on known range element. - */ - //Resource createDomainElement(WriteGraph g, Object rangeElement) throws MappingException; - - /** - * Creates a range element based on known domain element. - */ - //Object createRangeElement(ReadGraph g, Resource domainElement) throws MappingException; -} +/******************************************************************************* + * Copyright (c) 2007, 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.schema; + +import org.simantics.objmap.backward.IBackwardLinkType; +import org.simantics.objmap.bidirectional.IBidirectionalMappingRule; +import org.simantics.objmap.forward.IForwardLinkType; + +/** + * Contains rules for how a link should be created and maintained. + * @author Hannu Niemistö + */ +public interface ILinkType extends IBidirectionalMappingRule, IBackwardLinkType, IForwardLinkType { + /** + * Creates a domain element based on known range element. + */ + //Resource createDomainElement(WriteGraph g, Object rangeElement) throws MappingException; + + /** + * Creates a range element based on known domain element. + */ + //Object createRangeElement(ReadGraph g, Resource domainElement) throws MappingException; +}