ChoiceNode was deprecated in favor of ChoiceSchemaNode in Lithium.
Remove it.
Change-Id: I4acfdcbce5fdd99fb8a893fa5820623fcb527a3f
Signed-off-by: Robert Varga <rovarga@cisco.com>
* particular context of parent node.
*
* YANG Model and schema for choice is described by instance of
- * {@link org.opendaylight.yangtools.yang.model.api.ChoiceNode}.
+ * {@link org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode}.
*
* Valid alternatives of subtree are described by instances of
* {@link org.opendaylight.yangtools.yang.model.api.ChoiceCaseNode}, which are retrieved via
- * {@link org.opendaylight.yangtools.yang.model.api.ChoiceNode#getCases()}.
+ * {@link org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode#getCases()}.
*/
public interface ChoiceNode extends //
MixinNode, //
+++ /dev/null
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.yang.model.api;
-
-
-/**
- * The ChoiceNode defines a set of alternatives. It consists of a number of
- * branches defined as ChoiceCaseNode objects.
- *
- * @deprecated This interface is deprecated in favor of {@link ChoiceSchemaNode} and
- * will be removed in a future release.
- */
-@Deprecated
-public interface ChoiceNode extends ChoiceSchemaNode {
-
-}
* @see ContainerSchemaNode
* @see ListSchemaNode
* @see LeafListSchemaNode
- * @see ChoiceNode
+ * @see ChoiceSchemaNode
* @see ChoiceCaseNode
* @see LeafSchemaNode
* @see AnyXmlSchemaNode
public final class ChoiceBuilder extends AbstractSchemaNodeBuilder implements DataSchemaNodeBuilder,
AugmentationTargetBuilder {
- private ChoiceNodeImpl instance;
+ private ChoiceSchemaNodeImpl instance;
// DataSchemaNode args
private boolean augmenting;
return instance;
}
- instance = new ChoiceNodeImpl(qname, schemaPath);
+ instance = new ChoiceSchemaNodeImpl(qname, schemaPath);
instance.description = description;
instance.reference = reference;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
import org.opendaylight.yangtools.yang.model.api.ChoiceCaseNode;
-import org.opendaylight.yangtools.yang.model.api.ChoiceNode;
import org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ConstraintDefinition;
import org.opendaylight.yangtools.yang.model.api.DerivableSchemaNode;
import org.opendaylight.yangtools.yang.model.api.Status;
import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
-// FIXME: BUG-1513: remove ChoiceNode in Beryllium timeframe
-final class ChoiceNodeImpl implements ChoiceNode, ChoiceSchemaNode, DerivableSchemaNode {
+final class ChoiceSchemaNodeImpl implements ChoiceSchemaNode, DerivableSchemaNode {
private final QName qname;
private final SchemaPath path;
String description;
ImmutableList<UnknownSchemaNode> unknownNodes;
String defaultCase;
- ChoiceNodeImpl(final QName qname, final SchemaPath path) {
+ ChoiceSchemaNodeImpl(final QName qname, final SchemaPath path) {
this.qname = qname;
this.path = path;
}
if (getClass() != obj.getClass()) {
return false;
}
- ChoiceNodeImpl other = (ChoiceNodeImpl) obj;
+ ChoiceSchemaNodeImpl other = (ChoiceSchemaNodeImpl) obj;
if (qname == null) {
if (other.qname != null) {
return false;
@Override
public String toString() {
- StringBuilder sb = new StringBuilder(ChoiceNodeImpl.class.getSimpleName());
+ StringBuilder sb = new StringBuilder(ChoiceSchemaNodeImpl.class.getSimpleName());
sb.append("[");
sb.append("qname=").append(qname);
sb.append("]");