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 com.google.common.annotations.Beta;
13 * Represents a node that can be added by uses or by augmentation.
16 public interface CopyableNode {
18 * Returns <code>true</code> if this node was added by augmentation,
19 * otherwise returns <code>false</code>.
21 * @return <code>true</code> if this node was added by augmentation,
22 * otherwise returns <code>false</code>
24 boolean isAugmenting();
27 * Returns <code>true</code> if this node was added by uses statement,
28 * otherwise returns <code>false</code>.
30 * @return <code>true</code> if this node was added by uses statement,
31 * otherwise returns <code>false</code>
33 boolean isAddedByUses();