]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph/src/org/simantics/graph/refactoring/MappingSpecification.java
Initial version of SCL tab contributions
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / refactoring / MappingSpecification.java
1 package org.simantics.graph.refactoring;\r
2 \r
3 import java.util.Collection;\r
4 \r
5 import org.simantics.graph.query.Path;\r
6 \r
7 public class MappingSpecification {\r
8     public static class MappingRule {\r
9         public final Path from;\r
10         public final Path to;\r
11         \r
12         public MappingRule(Path from, Path to) {\r
13             this.from = from;\r
14             this.to = to;\r
15         }\r
16     }\r
17     \r
18     public final Collection<MappingRule> rules;\r
19 \r
20     public MappingSpecification(Collection<MappingRule> rules) {\r
21         this.rules = rules;\r
22     }\r
23     \r
24     public Collection<MappingRule> getRules() {\r
25         return rules;\r
26     }\r
27 }\r