2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. 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.mdsal.binding.generator.impl.rt;
10 import com.google.common.annotations.Beta;
11 import com.google.common.collect.ImmutableList;
12 import java.util.Collection;
13 import java.util.List;
14 import org.eclipse.jdt.annotation.NonNull;
15 import org.opendaylight.mdsal.binding.model.api.GeneratedType;
16 import org.opendaylight.mdsal.binding.runtime.api.AugmentRuntimeType;
17 import org.opendaylight.mdsal.binding.runtime.api.CaseRuntimeType;
18 import org.opendaylight.mdsal.binding.runtime.api.ChoiceRuntimeType;
19 import org.opendaylight.mdsal.binding.runtime.api.RuntimeType;
20 import org.opendaylight.yangtools.yang.model.api.stmt.ChoiceEffectiveStatement;
23 public final class OriginalChoiceRuntimeType extends AbstractChoiceRuntimeType {
24 private final @NonNull ImmutableList<CaseRuntimeType> augmentedCases;
26 public OriginalChoiceRuntimeType(final GeneratedType bindingType, final ChoiceEffectiveStatement statement,
27 final List<RuntimeType> children, final List<AugmentRuntimeType> augments,
28 final List<CaseRuntimeType> augmentedCases) {
29 super(bindingType, statement, children, augments);
30 this.augmentedCases = ImmutableList.copyOf(augmentedCases);
34 public ChoiceRuntimeType originalType() {
39 public Collection<CaseRuntimeType> additionalCaseChildren() {
40 return augmentedCases;