/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.controller.yang.model.api; import java.util.Map; import java.util.Set; public interface UsesNode { /** * @return path to 'grouping' on which this 'uses' statement points */ SchemaPath getGroupingPath(); /** * @return Set of augment statements defined under this uses node */ Set getAugmentations(); /** * Returns true if the data node was added by augmentation, * otherwise returns false * * @return true if the data node was added by augmentation, * otherwise returns false */ boolean isAugmenting(); /** * Returns true if the data node was added by uses statement, * otherwise returns false * * @return true if the data node was added by uses statement, * otherwise returns false */ boolean isAddedByUses(); /** * Some of the properties of each node in the grouping can be refined with * the "refine" statement. * * @return Map, where key is schema path of refined node and value is * refined node */ Map getRefines(); }