]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceRef.java
Migrated source code from Simantics SVN
[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;\r
2 \r
3 public class ResourceRef implements Comparable<ResourceRef> {\r
4         String javaName;\r
5         String uri;\r
6         boolean deprecated = false;\r
7         \r
8         public ResourceRef(String javaName, String uri) {\r
9                 this.javaName = javaName;\r
10                 this.uri = uri;\r
11         }\r
12 \r
13         public String getJavaName() {\r
14                 return javaName;\r
15         }\r
16         \r
17         public String getUri() {\r
18                 return uri;\r
19         }\r
20         \r
21         public boolean getDeprecated() {\r
22                 return deprecated;\r
23         }\r
24 \r
25         @Override\r
26         public int compareTo(ResourceRef o) {\r
27                 return javaName.compareTo(o.javaName);\r
28         }\r
29 }\r