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 org.opendaylight.yangtools.yang.common.QName;
11 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
12 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
13 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
16 * Common interface grouping all {@link EffectiveStatement}s which are accessible via
17 * {@link SchemaTreeAwareEffectiveStatement#schemaTreeNodes()}. This such statement corresponds to a
18 * {@code schema node}.
21 * This interface could be named {@code SchemaNodeEffectiveStatement}, but that could induce a notion that it has
22 * something to do with {@link SchemaNode} -- which it has not. SchemaNode semantics are wrong in may aspects
23 * and while implementations of this interface may also implement SchemaNode, the semantics of this interface should
24 * always be preferred and SchemaNode is to be treated as deprecated whenever possible.
26 * @param <D> Declared statement type
28 public interface SchemaTreeEffectiveStatement<D extends DeclaredStatement<QName>> extends EffectiveStatement<QName, D> {