2 * Copyright (c) 2018 Pantheon Technologies, 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.yangtools.yang.model.api.stmt;
10 import static com.google.common.base.Verify.verifyNotNull;
12 import com.google.common.annotations.Beta;
13 import org.opendaylight.yangtools.concepts.Identifiable;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
16 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
19 * Common super-interface for all statements which can be held in one of the {@link EffectiveStatementNamespace}s.
21 * @param <D> Declared statement type
23 * @author Robert Varga
26 public interface NamespacedEffectiveStatement<D extends DeclaredStatement<QName>>
27 extends EffectiveStatement<QName, D>, Identifiable<QName> {
30 default QName getIdentifier() {
31 return verifyNotNull(argument());