2 * Copyright (c) 2017 Cisco Systems, Inc. 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.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
13 * Represents a node that can be added by uses or by augmentation.
15 * @deprecated Aside from the deprecated {@link AddedByUsesAware} contract, this interface adds only a trait related
16 * to now how we arrived at this effective node. Users who need to know this information should really be
17 * looking at the {@link DeclaredStatement} world, which holds the original node definition.
20 public interface CopyableNode extends AddedByUsesAware {
22 * Returns <code>true</code> if this node was added by augmentation,
23 * otherwise returns <code>false</code>.
25 * @return <code>true</code> if this node was added by augmentation,
26 * otherwise returns <code>false</code>
28 boolean isAugmenting();