From 11a07548e4b3f14c7ac30fc496241e26cd2835fd Mon Sep 17 00:00:00 2001 From: luukkainen Date: Thu, 23 May 2013 08:00:06 +0000 Subject: [PATCH] refs #4298 git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@27439 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/interop/mapping/Mapper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java index 2a965b8..1c787cc 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java @@ -80,6 +80,11 @@ public class Mapper { addRule(0,idRule,mappingRule); } + public void addRule(IdentificationRule idRule, MappingRule... mappingRules) { + for (MappingRule mappingRule : mappingRules) + addRule(0,idRule,mappingRule); + } + public void addRule(int pass, IdentificationRule idRule, MappingRule mappingRule) { if (idRule == null || mappingRule == null) throw new NullPointerException(); if (mappingRule instanceof ModificationRule) { @@ -95,6 +100,11 @@ public class Mapper { initializedRules.add((InitializedRule)mappingRule); } + public void addRule(int pass, IdentificationRule idRule, MappingRule... mappingRules) { + for (MappingRule mappingRule : mappingRules) + addRule(pass,idRule,mappingRule); + } + public void addRule(IdentificationRule idRule, ModificationRule... modRules) { addRule(0, idRule, modRules); } -- 2.47.1