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 / EmptyType.java
index 1b5abb22093080657f00037ecd2e017324214c03..424f313efae6b20ccf35cf78e6b12057594114e0 100644 (file)
@@ -7,9 +7,7 @@
  */
 package org.opendaylight.controller.yang.model.util;
 
-import java.net.URI;
 import java.util.Collections;
-import java.util.Date;
 import java.util.List;
 
 import org.opendaylight.controller.yang.common.QName;
@@ -18,7 +16,7 @@ import org.opendaylight.controller.yang.model.api.Status;
 import org.opendaylight.controller.yang.model.api.UnknownSchemaNode;
 import org.opendaylight.controller.yang.model.api.type.EmptyTypeDefinition;
 
-public class EmptyType implements EmptyTypeDefinition {
+public final class EmptyType implements EmptyTypeDefinition {
 
     private final QName name = BaseTypes.constructQName("empty");
     private final SchemaPath path;
@@ -31,9 +29,8 @@ public class EmptyType implements EmptyTypeDefinition {
         this.baseType = this;
     }
 
-    public EmptyType(final List<String> actualPath,
-            final URI namespace, final Date revision) {
-        path = BaseTypes.schemaPath(actualPath, namespace, revision);
+    public EmptyType(final SchemaPath path) {
+        this.path = path;
         this.baseType = new EmptyType();
     }