X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.objmap2%2Fsrc%2Forg%2Fsimantics%2Fobjmap%2Fforward%2FIForwardMappingRule.java;fp=org.simantics.objmap2%2Fsrc%2Forg%2Fsimantics%2Fobjmap%2Fforward%2FIForwardMappingRule.java;h=0000000000000000000000000000000000000000;hb=8b08645397fcc2bb08d5fc0079b60ac2f69bb9f6;hp=b64acc90b40662a672fe8fcf4ae4fb3f04e7a643;hpb=c2bc02ab23627234920e89e364c2b4b2e7657249;p=simantics%2F3d.git diff --git a/org.simantics.objmap2/src/org/simantics/objmap/forward/IForwardMappingRule.java b/org.simantics.objmap2/src/org/simantics/objmap/forward/IForwardMappingRule.java deleted file mode 100644 index b64acc90..00000000 --- a/org.simantics.objmap2/src/org/simantics/objmap/forward/IForwardMappingRule.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * 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.forward; - -import org.simantics.db.ReadGraph; -import org.simantics.objmap.exceptions.MappingException; - -public interface IForwardMappingRule { - /** - * Modifies the range element so that it corresponds to the domain element. - * @param g read transaction - * @param map unidirectional view of the current mapping - * @param domainElement the domain element that corresponds to the range element - * @param rangeElement the range element that is updated - * @return true if the rule made some modifications - * @throws MappingException - */ - boolean updateRange(ReadGraph graph, IForwardMapping mapping, Domain domainElement, Range rangeElement) throws MappingException; - void createRange(ReadGraph graph, IForwardMapping mapping, Domain domainElement, Range rangeElement) throws MappingException; -}