2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.yang.model.api;
10 import org.opendaylight.controller.yang.common.QName;
15 * The ChoiceNode defines a set of alternatives. It consists of a number of
16 * branches defined as ChoiceCaseNode objects.
18 public interface ChoiceNode extends DataSchemaNode, AugmentationTarget {
21 * @return ChoiceCaseNode objects defined in this node
23 Set<ChoiceCaseNode> getCases();
27 * QName of seeked Choice Case Node
28 * @return child case node of this Choice if child with given name is
29 * present, <code>null</code> otherwise
31 ChoiceCaseNode getCaseNodeByName(QName name);
35 * name of seeked child as String
36 * @return child case node (or local name of case node) of this Choice if child with given name is
37 * present, <code>null</code> otherwise
39 ChoiceCaseNode getCaseNodeByName(String name);
41 String getDefaultCase();