cd0bb354e445270176947a3acdb00093f10051e9
[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 import org.opendaylight.yangtools.yang.model.api.Status;
14
15 /**
16  * Interface for all builders of SchemaNode nodes.
17  */
18 public interface SchemaNodeBuilder extends Builder {
19
20     /**
21      * Get qname of this node.
22      *
23      * @return QName of this node
24      */
25     QName getQName();
26
27     /**
28      * Get schema path of this node.
29      *
30      * @return SchemaPath of this node
31      */
32     SchemaPath getPath();
33
34     /**
35      * Set path to this node.
36      *
37      * @param path
38      */
39     void setPath(SchemaPath path);
40
41     /**
42      * Get description of this node.
43      *
44      * @return description statement
45      */
46     String getDescription();
47
48     /**
49      * Set description to this node.
50      *
51      * @param description
52      */
53     void setDescription(String description);
54
55     /**
56      * Get reference of this node.
57      *
58      * @return reference statement
59      */
60     String getReference();
61
62     /**
63      * Set reference to this node.
64      *
65      * @param reference
66      */
67     void setReference(String reference);
68
69     /**
70      * Get status of this node.
71      *
72      * @return status statement
73      */
74     Status getStatus();
75
76     /**
77      * Set status to this node.
78      *
79      * @param status
80      */
81     void setStatus(Status status);
82
83     /**
84      * Build SchemaNode object from this builder.
85      */
86     SchemaNode build();
87
88 }