+/*
+ * Copyright (c) 2015 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.parser.builder.impl;
import com.google.common.base.Optional;
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.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.Status;
import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
-final class ChoiceNodeImpl implements ChoiceNode, DerivableSchemaNode {
+// FIXME: BUG-1513: remove ChoiceNode in Beryllium timeframe
+final class ChoiceNodeImpl implements ChoiceNode, ChoiceSchemaNode, DerivableSchemaNode {
private final QName qname;
private final SchemaPath path;
String description;
Status status;
boolean augmenting;
boolean addedByUses;
- ChoiceNode original;
+ ChoiceSchemaNode original;
boolean configuration;
ConstraintDefinition constraints;
ImmutableSet<ChoiceCaseNode> cases;
}
@Override
- public Optional<ChoiceNode> getOriginal() {
+ public Optional<ChoiceSchemaNode> getOriginal() {
return Optional.fromNullable(original);
}