Deprecate AddedByUsesAware
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / AddedByUsesAware.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.model.api;
9
10 import com.google.common.annotations.Beta;
11
12 /**
13  * Trait interface for {@link SchemaNode}s, which have the {@link #isAddedByUses()} method.
14  *
15  * @deprecated The only user of this trait is MD-SAL's binding component. As such, we provide enough information in
16  *             EffectiveStatement tree to reconstruct this information.
17  */
18 @Beta
19 @Deprecated(since = "7.0.9")
20 public interface AddedByUsesAware {
21     /**
22      * Returns {@code true} if this node was added by uses statement, otherwise returns {@code false}.
23      *
24      * @return {@code true} if this node was added by uses statement, otherwise returns {@code false}
25      */
26     boolean isAddedByUses();
27 }