BUG-865: deprecate pre-Beryllium parser elements
[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  * @deprecated Pre-Beryllium implementation, scheduled for removal.
18  */
19 @Deprecated
20 public interface SchemaNodeBuilder extends DocumentedNodeBuilder, Builder {
21
22     /**
23      * Returns qname of resulting {@link SchemaNode}.
24      *
25      * @return QName of this node
26      */
27     QName getQName();
28
29     /**
30      * Returns schema path of resulting  {@link SchemaNode}.
31      *
32      * @return SchemaPath of this node
33      */
34     SchemaPath getPath();
35
36     /**
37      * Updates schema path to resulting {@link SchemaNode}.
38      *
39      * @param path schema path
40      */
41     void setPath(SchemaPath path);
42
43     /**
44      * Build SchemaNode object from this builder.
45      */
46     @Override
47     SchemaNode build();
48
49 }