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;
12 * Data Schema Node represents abstract supertype from which all data tree
13 * definitions are derived.
15 * Contains the method which are used for getting metadata from the schema nodes
16 * which contains data.
18 * @see ContainerSchemaNode
20 * @see LeafListSchemaNode
21 * @see ChoiceSchemaNode
24 * @see AnyXmlSchemaNode
25 * @see AnyDataSchemaNode
29 public interface DataSchemaNode extends SchemaNode {
32 * Returns <code>true</code> if the data node was added by augmentation,
33 * otherwise returns <code>false</code>
35 * @return <code>true</code> if the data node was added by augmentation,
36 * otherwise returns <code>false</code>
38 boolean isAugmenting();
41 * Returns <code>true</code> if the data node was added by uses statement,
42 * otherwise returns <code>false</code>
44 * @return <code>true</code> if the data node was added by uses statement,
45 * otherwise returns <code>false</code>
47 boolean isAddedByUses();
50 * Returns <code>true</code> if the data represents configuration data,
51 * otherwise returns <code>false</code>
53 * @return <code>true</code> if the data represents configuration data,
54 * otherwise returns <code>false</code>
56 boolean isConfiguration();
59 * Returns the constraints associated with Data Schema Node
61 * @return the constraints associated with Data Schema Node
63 ConstraintDefinition getConstraints();