X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Fapi%2FUsesNode.java;h=1920f9859c55e68825677decfe92f4bd9a2a0469;hp=715dce7027d2d72fa5804254e8ec60b5cb79c816;hb=154b5dde1af41aff2ae0cc6e08400153162a4a3c;hpb=ca85a6f3a39b406ab122fe985ee010a41489f658 diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/UsesNode.java b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/UsesNode.java index 715dce7027..1920f9859c 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/UsesNode.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/UsesNode.java @@ -7,12 +7,45 @@ */ package org.opendaylight.controller.yang.model.api; +import java.util.Map; import java.util.Set; public interface UsesNode { + /** + * @return path to 'grouping' on which this 'uses' statement points + */ SchemaPath getGroupingPath(); + + /** + * @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(); + + /** + * Some of the properties of each node in the grouping can be refined with + * the "refine" statement. + * + * @return Map, where key is schema path of refined node and value is + * refined node + */ + Map getRefines(); }