2 * Copyright (c) 2013 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;
14 * Contains the methods for getting data and checking properties of the YANG
15 * <code>uses</code> substatement.
18 public interface UsesNode {
21 * Returns the schema path to used grouping.
23 * @return schema path to 'grouping' on which this 'uses' statement points
25 SchemaPath getGroupingPath();
29 * Returns augmentations which were specified in this uses node.
31 * @return Set of augment statements defined under this uses node
33 Set<AugmentationSchema> getAugmentations();
36 * Returns <code>true</code> if the data node was added by augmentation,
37 * otherwise returns <code>false</code>
39 * @return <code>true</code> if the data node was added by augmentation,
40 * otherwise returns <code>false</code>
42 boolean isAugmenting();
45 * Returns <code>true</code> if the data node was added by uses statement,
46 * otherwise returns <code>false</code>
48 * @return <code>true</code> if the data node was added by uses statement,
49 * otherwise returns <code>false</code>
51 boolean isAddedByUses();
54 * Some of the properties of each node in the grouping can be refined with
55 * the "refine" statement.
57 * @return Map, where key is schema path of refined node and value is
60 Map<SchemaPath, SchemaNode> getRefines();