Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BUG-865: deprecate pre-Beryllium parser elements
[yangtools.git]
/
yang
/
yang-parser-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
parser
/
builder
/
api
/
DataSchemaNodeBuilder.java
diff --git
a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/DataSchemaNodeBuilder.java
b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/DataSchemaNodeBuilder.java
index b0c086593dbecb368af7cdca1cfab6b5c6f46dec..cf0ed93f53a7150eb8ea4d46f44cce99900ade8c 100644
(file)
--- a/
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/DataSchemaNodeBuilder.java
+++ b/
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/DataSchemaNodeBuilder.java
@@
-8,29
+8,44
@@
package org.opendaylight.yangtools.yang.parser.builder.api;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
package org.opendaylight.yangtools.yang.parser.builder.api;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
-import org.opendaylight.yangtools.yang.parser.builder.impl.ConstraintsBuilder;
/**
* Interface for all yang data-schema nodes [anyxml, case, container, grouping,
* list, module, notification].
/**
* Interface for all yang data-schema nodes [anyxml, case, container, grouping,
* list, module, notification].
+ *
+ * @deprecated Pre-Beryllium implementation, scheduled for removal.
*/
*/
-public interface DataSchemaNodeBuilder extends SchemaNodeBuilder {
+@Deprecated
+public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember {
/**
/**
- * Build DataSchemaNode object from this builder.
+ * Get original builder definition from grouping, where it is defined.
+ *
+ * @return original builder definition from grouping if this node is added
+ * by uses, null otherwise
*/
*/
- DataSchemaNode build();
+ SchemaNodeBuilder getOriginal();
+
+ /**
+ * Set original builder definition from grouping
+ *
+ * @param original
+ * original builder definition from grouping
+ */
+ void setOriginal(SchemaNodeBuilder original);
/**
/**
+ *
+ * Returns true if product of this builder is added by augmentation.
*
* @return true, if this node is added by augmentation, false otherwise
*/
boolean isAugmenting();
/**
*
* @return true, if this node is added by augmentation, false otherwise
*/
boolean isAugmenting();
/**
- * Set if th
is node is add
ed by augmentation.
+ * Set if th
e product of the builder node is introduc
ed by augmentation.
*
*
- * @param augmenting
+ * @param augmenting
information about augmentation
*/
void setAugmenting(boolean augmenting);
*/
void setAugmenting(boolean augmenting);
@@
-39,14
+54,15
@@
public interface DataSchemaNodeBuilder extends SchemaNodeBuilder {
*
* @return value of config statement
*/
*
* @return value of config statement
*/
-
B
oolean isConfiguration();
+
b
oolean isConfiguration();
/**
/**
- * Set config statement.
+ * Set config statement to the product.
+ *
*
*
- * @param config
+ * @param config
true if config true was set, false if config false was set.
*/
*/
- void setConfiguration(
B
oolean config);
+ void setConfiguration(
b
oolean config);
/**
* Get constraints of this builder.
/**
* Get constraints of this builder.
@@
-55,4
+71,12
@@
public interface DataSchemaNodeBuilder extends SchemaNodeBuilder {
*/
ConstraintsBuilder getConstraints();
*/
ConstraintsBuilder getConstraints();
+ /**
+ * Build DataSchemaNode object from this builder.
+ *
+ * @return instance of {@link DataSchemaNode} based on the state present in this builder.
+ */
+ @Override
+ DataSchemaNode build();
+
}
}