uses
substatement.
*/
public interface UsesNode extends DocumentedNode.WithStatus {
/**
* Returns the schema path to used grouping.
*
* @return schema path to 'grouping' on which this 'uses' statement points
*/
@Nonnull SchemaPath getGroupingPath();
/**
* Returns augmentations which were specified in this uses node.
*
* @return Set of augment statements defined under this uses node
*/
@Nonnull Settrue
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
*/
@Nonnull Map
* If when condition is present node defined by the parent data definition
* statement is only valid when the returned XPath expression conceptually
* evaluates to "true" for a particular instance, then the node defined by
* the parent data definition statement is valid; otherwise, it is not.
*
* @return Optional of XPath condition
*/
default @Nonnull Optional