Fix license header violations in yang-parser-impl
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / builder / impl / ChoiceNodeImpl.java
index 1b1d3fe689c526f7c1d8b56b5dd0c59cc26c2bd9..20bb0a6b35c934d74f42eea450edac31a2ef6dd4 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * 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;
@@ -9,13 +17,15 @@ 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.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;
@@ -23,7 +33,7 @@ final class ChoiceNodeImpl implements ChoiceNode, DerivableSchemaNode {
     Status status;
     boolean augmenting;
     boolean addedByUses;
-    ChoiceNode original;
+    ChoiceSchemaNode original;
     boolean configuration;
     ConstraintDefinition constraints;
     ImmutableSet<ChoiceCaseNode> cases;
@@ -72,7 +82,7 @@ final class ChoiceNodeImpl implements ChoiceNode, DerivableSchemaNode {
     }
 
     @Override
-    public Optional<ChoiceNode> getOriginal() {
+    public Optional<ChoiceSchemaNode> getOriginal() {
         return Optional.fromNullable(original);
     }