2 * Copyright (c) 2014 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.yangtools.yang.data.api.schema;
10 import java.util.Collection;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
16 * Node representing data instance of <code>choice</code>.
18 * Choice node is instance of one of possible alternatives, from which
19 * only one is allowed to exist at one time in particular context of parent node.
21 * schema for choice is described by instance of {@link org.opendaylight.yangtools.yang.model.api.ChoiceNode}.
22 * Valid alternatives of subtree are described by instances of {@link org.opendaylight.yangtools.yang.model.api.ChoiceCaseNode}
23 * which are retrieved via {@link org.opendaylight.yangtools.yang.model.api.ChoiceNode#getCases()}.
26 public interface ChoiceNode extends //
28 DataContainerNode<NodeIdentifier>,
29 DataContainerChild<NodeIdentifier, Collection<DataContainerChild<? extends PathArgument, ?>>> {