2 * Copyright (c) 2020 PANTHEON.tech, 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;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
15 * Marker interface for objects which have an equivalent EffectiveStatement. This interface generally serves as a bridge
16 * from legacy {@link DocumentedNode}s view of the schema to the more modern {@link EffectiveStatement}s view.
19 * This is a transitional interface tied to {@link DocumentedNode} and is expected to follow its lifecycle, i.e. it will
20 * be deprecated and removed when last of its users in this package go.
23 * Implementations of this interface are recommeded to return a constant object, preferably {@code this}.
25 * @param <E> Type of equivalent {@link EffectiveStatement}.
28 public interface EffectiveStatementEquivalent<E extends EffectiveStatement<?, ?>> {
30 * Return {@link EffectiveStatement} representation of this object.
32 * @return {@link EffectiveStatement} representation of this object.
34 @NonNull E asEffectiveStatement();