Fix leafref require-instance implementation
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / type / InstanceIdentifierTypeDefinition.java
index 0bca31119b2b20e1d34ce72429cf160f26a1d007..69504e8d35292940f339f18388fa77d67707008e 100644 (file)
@@ -7,18 +7,10 @@
  */
 package org.opendaylight.yangtools.yang.model.api.type;
 
-import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
-
 /**
- * Contains methods for getting data from the <code>instance-identifier</code>
- * YANG built-in type.
+ * Contains methods for getting data from the <code>instance-identifier</code> YANG built-in type.
  */
-public interface InstanceIdentifierTypeDefinition extends TypeDefinition<InstanceIdentifierTypeDefinition> {
-    /**
-     * Returns true|false which represents argument of <code>require-instance</code> statement. This statement is the
-     * substatement of the <code>type</code> statement.
-     *
-     * @return boolean value which is true if the <code>require-instance</code> statement is true and vice versa
-     */
-    boolean requireInstance();
+public interface InstanceIdentifierTypeDefinition
+        extends RequireInstanceRestrictedTypeDefinition<InstanceIdentifierTypeDefinition> {
+
 }