f81813c45484b46e52bf28e6de8bfdd8bd6e9507
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / builder / api / SchemaNodeBuilder.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.parser.builder.api;
9
10 import org.opendaylight.yangtools.yang.common.QName;
11 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
12 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
13
14 /**
15  * Builder for {@link SchemaNode}.
16  */
17 public interface SchemaNodeBuilder extends DocumentedNodeBuilder, Builder {
18
19     /**
20      * Returns qname of resulting {@link SchemaNode}.
21      *
22      * @return QName of this node
23      */
24     QName getQName();
25
26     /**
27      * Returns schema path of resulting  {@link SchemaNode}.
28      *
29      * @return SchemaPath of this node
30      */
31     SchemaPath getPath();
32
33     /**
34      * Updates schema path to resulting {@link SchemaNode}.
35      *
36      * @param path schema path
37      */
38     void setPath(SchemaPath path);
39
40     /**
41      * Build SchemaNode object from this builder.
42      */
43     @Override
44     SchemaNode build();
45
46 }