Implemented YANG identityref type parsing.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / types / custom-types-test@2012-4-4.yang
index 0a06a30875e4c96457b6783f746c44a3098e96bb..86f5f195b8a8633bee31377b05b02cc575f1e98a 100644 (file)
@@ -5,9 +5,9 @@ module custom-types-test {
     prefix "iit";
     
     organization "opendaylight";
-    revision 2012-04-16 {
-    }
     contact "WILL-BE-DEFINED-LATER";
+        revision 2012-04-16 {
+    }
     
     
     typedef access-operations-type {
@@ -89,5 +89,27 @@ module custom-types-test {
        }
      }
    }
-       
+   
+  identity service-type {
+    description
+            "Service identity base type. All service identities must be
+             derived from this type. A service type uniquely defines a single
+             atomic API contract, such as a Java interface, a set of C
+             function declarations, or similar.
+
+             If the service type has a corresponding Java interface, the name
+             of that interface should be attached to the derived identity MUST
+             include a java-class keyword, whose name argument points to that
+             interface.";
+  }
+
+  typedef service-type-ref {
+    description
+            "Internal type of references to service type identity.";
+
+    type identityref {
+      base service-type;
+    }
+  }
+
 }