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.parser.stmt.rfc6020;
10 import com.google.common.collect.ImmutableList;
11 import java.util.Collection;
13 import javax.annotation.Nonnull;
14 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
15 import org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace;
16 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
17 import org.opendaylight.yangtools.yang.model.api.meta.StatementSource;
18 import org.opendaylight.yangtools.yang.model.api.stmt.MandatoryStatement;
19 import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.MandatoryEffectiveStatement;
21 abstract class EmptyMandatoryEffectiveStatement implements MandatoryEffectiveStatement {
22 static final EmptyMandatoryEffectiveStatement FALSE = new EmptyMandatoryEffectiveStatement() {
24 public MandatoryStatement getDeclared() {
25 return EmptyMandatoryStatement.FALSE;
29 static final EmptyMandatoryEffectiveStatement TRUE = new EmptyMandatoryEffectiveStatement() {
31 public MandatoryStatement getDeclared() {
32 return EmptyMandatoryStatement.TRUE;
36 private EmptyMandatoryEffectiveStatement() {
42 public final StatementDefinition statementDefinition() {
43 return getDeclared().statementDefinition();
47 public final Boolean argument() {
48 return getDeclared().argument();
53 public final StatementSource getStatementSource() {
54 return getDeclared().getStatementSource();
58 public final <K, V, N extends IdentifierNamespace<K, V>> V get(@Nonnull final Class<N> namespace, @Nonnull final K identifier) {
59 throw new UnsupportedOperationException("Not implemented yet.");
63 public final <K, V, N extends IdentifierNamespace<K, V>> Map<K, V> getAll(@Nonnull final Class<N> namespace) {
64 throw new UnsupportedOperationException("Not implemented yet.");
69 public final Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
70 return ImmutableList.of();