X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2FUsesNode.java;h=5d18a93449f34d3416b8b9dd2a5d1ce574fee94b;hb=8d91cc6496aca7b8b7abafb3b82e6e3ed7823604;hp=cd4a58d692deef45dd926412528712ae37fd2540;hpb=b8d143d0e6e4b9790bfaef5356b4ea4e279a8931;p=yangtools.git
diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UsesNode.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UsesNode.java
index cd4a58d692..5d18a93449 100644
--- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UsesNode.java
+++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UsesNode.java
@@ -9,46 +9,27 @@ package org.opendaylight.yangtools.yang.model.api;
import java.util.Map;
import java.util.Set;
+import javax.annotation.Nonnull;
+import org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus;
/**
- * Contains the methods for getting data and checking properties of the YANG
- * uses
substatement.
- *
+ * Contains the methods for getting data and checking properties of the YANG uses
substatement.
*/
-public interface UsesNode {
+public interface UsesNode extends WhenConditionAware, WithStatus, CopyableNode {
/**
* Returns the schema path to used grouping.
*
* @return schema path to 'grouping' on which this 'uses' statement points
*/
- SchemaPath getGroupingPath();
+ @Nonnull SchemaPath getGroupingPath();
/**
- *
- * Returns agumentations which were specified in this uses node.
+ * Returns augmentations which were specified in this uses node.
*
* @return Set of augment statements defined under this uses node
*/
- Set getAugmentations();
-
- /**
- * Returns true
if the data node was added by augmentation,
- * otherwise returns false
- *
- * @return true
if the data node was added by augmentation,
- * otherwise returns false
- */
- boolean isAugmenting();
-
- /**
- * Returns true
if the data node was added by uses statement,
- * otherwise returns false
- *
- * @return true
if the data node was added by uses statement,
- * otherwise returns false
- */
- boolean isAddedByUses();
+ @Nonnull Set getAugmentations();
/**
* Some of the properties of each node in the grouping can be refined with
@@ -57,5 +38,5 @@ public interface UsesNode {
* @return Map, where key is schema path of refined node and value is
* refined node
*/
- Map getRefines();
+ @Nonnull Map getRefines();
}