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