X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fbuilder%2Fapi%2FDataSchemaNodeBuilder.java;h=cf0ed93f53a7150eb8ea4d46f44cce99900ade8c;hb=42abb28b99a02f9580f4676ce5c315628e5bcd24;hp=018610176407a65eab6da4ecdb6c1dddeb9dd24e;hpb=e98a1027fca4e4b27c0e7e00a3723993935c34ad;p=yangtools.git 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 0186101764..cf0ed93f53 100644 --- 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; -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]. + * + * @deprecated Pre-Beryllium implementation, scheduled for removal. */ +@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(); - 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(); /** - * Set if this node is added by augmentation. + * Set if the product of the builder node is introduced by augmentation. * - * @param augmenting + * @param augmenting information about augmentation */ void setAugmenting(boolean augmenting); @@ -42,14 +54,15 @@ public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember * * @return value of config statement */ - Boolean isConfiguration(); + boolean 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(Boolean config); + void setConfiguration(boolean config); /** * Get constraints of this builder. @@ -58,4 +71,12 @@ public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember */ ConstraintsBuilder getConstraints(); + /** + * Build DataSchemaNode object from this builder. + * + * @return instance of {@link DataSchemaNode} based on the state present in this builder. + */ + @Override + DataSchemaNode build(); + }