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 com.google.common.annotations.Beta;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
13 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
14 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
17 * Common interface grouping all {@link EffectiveStatement}s which are accessible via
18 * {@link DataTreeAwareEffectiveStatement.Namespace}. This such statement corresponds to a {@code data node}.
21 * This interface could be named {@code SchemaNodeEffectiveStatement}, but that could induce a notion that it has
22 * something to do with {@link DataSchemaNode} -- which it has not. DataSchemaNode semantics are wrong in may aspects
23 * and while implementations of this interface may also implement DataSchemaNode, the semantics of this interface should
24 * always be preferred and DataSchemaNode is to be treated as deprecated whenever possible.
26 * @param <D> Declared statement type
27 * @author Robert Varga
30 public interface DataTreeEffectiveStatement<D extends DeclaredStatement<QName>>
31 extends SchemaTreeEffectiveStatement<D> {