X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Fapi%2FChoiceNode.java;h=140ef84c6c04f9b35a1f6d79d81f944c9355f891;hb=e72ae0ab1513e382e141f70dc544efdd782e439d;hp=ee4163da48c082531c4f4c99179d242b7f5c383c;hpb=f0b551cfbf794966124da7475935c27c3e7311c0;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/ChoiceNode.java b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/ChoiceNode.java index ee4163da48..140ef84c6c 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/ChoiceNode.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/ChoiceNode.java @@ -7,6 +7,8 @@ */ package org.opendaylight.controller.yang.model.api; +import org.opendaylight.controller.yang.common.QName; + import java.util.Set; /** @@ -20,6 +22,22 @@ public interface ChoiceNode extends DataSchemaNode, AugmentationTarget { */ Set getCases(); + /** + * @param name + * QName of seeked Choice Case Node + * @return child case node of this Choice if child with given name is + * present, null otherwise + */ + ChoiceCaseNode getCaseNodeByName(QName name); + + /** + * @param name + * name of seeked child as String + * @return child case node (or local name of case node) of this Choice if child with given name is + * present, null otherwise + */ + ChoiceCaseNode getCaseNodeByName(String name); + String getDefaultCase(); }