94a91bdce70b2ffa90994713477fd4725e83f2c9
[yangtools.git] / yang / 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 /**
11  * Trait interface for {@link SchemaNode}s, which have the {@link #isAddedByUses()} method.
12  *
13  * @deprecated This interface relates to declared model rather than to effective mode and as such should not
14  *             exist. It is provided to provide common method definition and eash migration of users.
15  */
16 @Deprecated
17 public interface AddedByUsesAware {
18     /**
19      * Returns <code>true</code> if this node was added by uses statement,
20      * otherwise returns <code>false</code>.
21      *
22      * @return <code>true</code> if this node was added by uses statement,
23      *         otherwise returns <code>false</code>
24      */
25     boolean isAddedByUses();
26 }