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 018610176407a65eab6da4ecdb6c1dddeb9dd24e..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,32
+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.model.api.SchemaPath;
-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.
*/
*/
+@Deprecated
public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember {
/**
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
();
- void setPath(SchemaPath path);
+ /**
+ * 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);
@@
-42,14
+54,15
@@
public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember
*
* @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.
@@
-58,4
+71,12
@@
public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember
*/
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();
+
}
}