]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - 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
diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceRef.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/resourceFiles/ResourceRef.java
new file mode 100644 (file)
index 0000000..46263f9
--- /dev/null
@@ -0,0 +1,29 @@
+package org.simantics.graph.compiler.internal.resourceFiles;\r
+\r
+public class ResourceRef implements Comparable<ResourceRef> {\r
+       String javaName;\r
+       String uri;\r
+       boolean deprecated = false;\r
+       \r
+       public ResourceRef(String javaName, String uri) {\r
+               this.javaName = javaName;\r
+               this.uri = uri;\r
+       }\r
+\r
+       public String getJavaName() {\r
+               return javaName;\r
+       }\r
+       \r
+       public String getUri() {\r
+               return uri;\r
+       }\r
+       \r
+       public boolean getDeprecated() {\r
+               return deprecated;\r
+       }\r
+\r
+       @Override\r
+       public int compareTo(ResourceRef o) {\r
+               return javaName.compareTo(o.javaName);\r
+       }\r
+}\r