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.parser.builder.api;
10 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
11 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
12 import org.opendaylight.yangtools.yang.parser.builder.impl.ConstraintsBuilder;
15 * Interface for all yang data-schema nodes [anyxml, case, container, grouping,
16 * list, module, notification].
18 public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember {
21 * Build DataSchemaNode object from this builder.
23 DataSchemaNode build();
25 void setPath(SchemaPath path);
29 * @return true, if this node is added by augmentation, false otherwise
31 boolean isAugmenting();
34 * Set if this node is added by augmentation.
38 void setAugmenting(boolean augmenting);
41 * Get value of config statement.
43 * @return value of config statement
45 boolean isConfiguration();
48 * Set config statement.
52 void setConfiguration(boolean config);
55 * Get constraints of this builder.
57 * @return constraints of this builder
59 ConstraintsBuilder getConstraints();