X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmodel%2Futil%2FBitsType.java;h=ac7bcaab9653e6367f06ab41178e0b45f543ac1d;hb=0fa3b1c50cf625fc37dd57350d3fa7db1b1b8eac;hp=b783bc773090e76d56c197797d30f33d5fdd1c9b;hpb=831844b15c26d2e104efff31405032ac09b3095f;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/model/util/BitsType.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/model/util/BitsType.java index b783bc7730..ac7bcaab96 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/model/util/BitsType.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/model/util/BitsType.java @@ -16,12 +16,21 @@ import org.opendaylight.controller.yang.model.api.SchemaPath; import org.opendaylight.controller.yang.model.api.Status; import org.opendaylight.controller.yang.model.api.UnknownSchemaNode; + +/** + * The default implementation of Bits Type Definition interface. + * + * @see BitsTypeDefinition + */ public class BitsType implements BitsTypeDefinition { private final QName name = BaseTypes.constructQName("bits"); private final SchemaPath path = BaseTypes.schemaPath(name); - private final String description = ""; - private final String reference = ""; + private final String description = "The bits built-in type represents a bit set. " + + "That is, a bits value is a set of flags identified by small integer position " + + "numbers starting at 0. Each bit number has an assigned name."; + + private final String reference = "https://tools.ietf.org/html/rfc6020#section-9.7"; private final List bits; private String units = ""; @@ -29,7 +38,6 @@ public class BitsType implements BitsTypeDefinition { /** * Default constructor.
* Instantiates Bits type as empty bits list. - * */ public BitsType() { super(); @@ -37,7 +45,7 @@ public class BitsType implements BitsTypeDefinition { } /** - * Overloaded constructor with explicit definition of bits assigned to + * Constructor with explicit definition of bits assigned to * BitsType. * * @param bits @@ -49,10 +57,18 @@ public class BitsType implements BitsTypeDefinition { this.units = ""; } + /** + * Constructor with explicit definition of bits assigned to + * BitsType and Units. + *
+ * The default value of Bits Type is List of bits. + * + * @param bits The bits assigned for Bits Type + * @param units units for bits type + */ public BitsType(List bits, String units) { super(); this.bits = Collections.unmodifiableList(bits); - ; this.units = units; }