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