]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceRef.java
(refs #7325) Fixed incorrect call of write in FilterCRWriter
[simantics/platform.git] / bundles / org.simantics.graph.compiler / src / org / simantics / graph / compiler / internal / resourceFiles / ResourceRef.java
1 package org.simantics.graph.compiler.internal.resourceFiles;
2
3 public class ResourceRef implements Comparable<ResourceRef> {
4         String javaName;
5         String uri;
6         boolean deprecated = false;
7         
8         public ResourceRef(String javaName, String uri) {
9                 this.javaName = javaName;
10                 this.uri = uri;
11         }
12
13         public String getJavaName() {
14                 return javaName;
15         }
16         
17         public String getUri() {
18                 return uri;
19         }
20         
21         public boolean getDeprecated() {
22                 return deprecated;
23         }
24
25         @Override
26         public int compareTo(ResourceRef o) {
27                 return javaName.compareTo(o.javaName);
28         }
29 }