Refactored SchemaPath for yang java types. Fixed SchemaPath for augmented nodes types.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-util / src / main / java / org / opendaylight / controller / yang / model / util / IdentityrefType.java
index 533318e39e3c15e8ac5fc1fcde2ac5d36fb669f0..6c4598131e496b405e1183ae521b44e507fb00ce 100644 (file)
@@ -7,9 +7,7 @@
   */\r
 package org.opendaylight.controller.yang.model.util;\r
 \r
-import java.net.URI;\r
 import java.util.Collections;\r
-import java.util.Date;\r
 import java.util.List;\r
 \r
 import org.opendaylight.controller.yang.common.QName;\r
@@ -23,7 +21,7 @@ import org.opendaylight.controller.yang.model.api.type.IdentityrefTypeDefinition
  *\r
  * @see IdentityrefTypeDefinition\r
  */\r
-public class IdentityrefType implements IdentityrefTypeDefinition {\r
+public final class IdentityrefType implements IdentityrefTypeDefinition {\r
 \r
     private final QName name = BaseTypes.constructQName("identityref");\r
     private final SchemaPath path;\r
@@ -47,13 +45,6 @@ public class IdentityrefType implements IdentityrefTypeDefinition {
         this.baseType = new IdentityrefType(identity);\r
     }\r
 \r
-    public IdentityrefType(final List<String> actualPath,\r
-            final URI namespace, final Date revision, final QName identity) {\r
-        this.identity = identity;\r
-        this.path = BaseTypes.schemaPath(actualPath, namespace, revision);\r
-        this.baseType = new IdentityrefType(identity);\r
-    }\r
-\r
     @Override\r
     public String getUnits() {\r
         return units;\r