Refactored YANG types resolving.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-util / src / main / java / org / opendaylight / controller / yang / model / util / Leafref.java
index 32181162906b2d1ade73af544d883b61e7348282..9253895e3fec79af913029a020a3bc0e3113c057 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.controller.yang.model.api.type.LeafrefTypeDefinition;
 /**\r
  * The <code>default</code> implementation of Instance Leafref Type Definition\r
  * interface.\r
- * \r
+ *\r
  * @see LeafrefTypeDefinition\r
  */\r
 public class Leafref implements LeafrefTypeDefinition {\r
@@ -35,12 +35,12 @@ public class Leafref implements LeafrefTypeDefinition {
     private final String units = "";\r
     private final LeafrefTypeDefinition baseType;\r
 \r
-    private Leafref(final RevisionAwareXPath xpath) {\r
+    public Leafref(final RevisionAwareXPath xpath) {\r
         this.xpath = xpath;\r
         this.path = BaseTypes.schemaPath(name);\r
         this.baseType = this;\r
     }\r
-    \r
+\r
     public Leafref(final List<String> actualPath, final URI namespace,\r
             final Date revision, final RevisionAwareXPath xpath) {\r
         super();\r
@@ -48,7 +48,7 @@ public class Leafref implements LeafrefTypeDefinition {
         this.xpath = xpath;\r
         baseType = new Leafref(xpath);\r
     }\r
-    \r
+\r
     public Leafref(final List<String> actualPath, final URI namespace,\r
             final Date revision, final LeafrefTypeDefinition baseType,\r
             final RevisionAwareXPath xpath) {\r
@@ -60,7 +60,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see\r
      * org.opendaylight.controller.yang.model.api.TypeDefinition#getBaseType()\r
      */\r
@@ -71,7 +71,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see org.opendaylight.controller.yang.model.api.TypeDefinition#getUnits()\r
      */\r
     @Override\r
@@ -81,7 +81,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see\r
      * org.opendaylight.controller.yang.model.api.TypeDefinition#getDefaultValue\r
      * ()\r
@@ -93,7 +93,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see org.opendaylight.controller.yang.model.api.SchemaNode#getQName()\r
      */\r
     @Override\r
@@ -103,7 +103,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see org.opendaylight.controller.yang.model.api.SchemaNode#getPath()\r
      */\r
     @Override\r
@@ -113,7 +113,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see\r
      * org.opendaylight.controller.yang.model.api.SchemaNode#getDescription()\r
      */\r
@@ -124,7 +124,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see org.opendaylight.controller.yang.model.api.SchemaNode#getReference()\r
      */\r
     @Override\r
@@ -134,7 +134,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see org.opendaylight.controller.yang.model.api.SchemaNode#getStatus()\r
      */\r
     @Override\r
@@ -144,7 +144,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see\r
      * org.opendaylight.controller.yang.model.api.SchemaNode#getExtensionSchemaNodes\r
      * ()\r
@@ -156,7 +156,7 @@ public class Leafref implements LeafrefTypeDefinition {
 \r
     /*\r
      * (non-Javadoc)\r
-     * \r
+     *\r
      * @see\r
      * org.opendaylight.controller.yang.model.api.type.LeafrefTypeDefinition\r
      * #getPathStatement()\r