2 * Copyright (c) 2015 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.model.ri.stmt.impl.eff;
10 import com.google.common.collect.ImmutableList;
11 import java.util.Optional;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
14 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
15 import org.opendaylight.yangtools.yang.model.api.stmt.ChoiceStatement;
17 public final class EmptyChoiceEffectiveStatement extends AbstractChoiceEffectiveStatement {
18 public EmptyChoiceEffectiveStatement(final ChoiceStatement declared,
19 final ImmutableList<? extends EffectiveStatement<?, ?>> substatements, final int flags) {
20 super(declared, substatements, flags);
23 public EmptyChoiceEffectiveStatement(final AbstractChoiceEffectiveStatement original, final int flags) {
24 super(original, flags);
28 public QName argument() {
29 return getDeclared().argument();
33 public Optional<CaseSchemaNode> getDefaultCase() {
34 return Optional.empty();