import org.opendaylight.controller.yang.model.api.Status;\r
import org.opendaylight.controller.yang.model.api.UnknownSchemaNode;\r
\r
+\r
+/**\r
+ * The <code>default</code> implementation of Bits Type Definition interface.\r
+ * \r
+ * @see BitsTypeDefinition\r
+ */\r
public class BitsType implements BitsTypeDefinition {\r
\r
private final QName name = BaseTypes.constructQName("bits");\r
private final SchemaPath path = BaseTypes.schemaPath(name);\r
- private final String description = "";\r
- private final String reference = "";\r
+ private final String description = "The bits built-in type represents a bit set. " +\r
+ "That is, a bits value is a set of flags identified by small integer position " +\r
+ "numbers starting at 0. Each bit number has an assigned name.";\r
+ \r
+ private final String reference = "https://tools.ietf.org/html/rfc6020#section-9.7";\r
\r
private final List<Bit> bits;\r
private String units = "";\r
/**\r
* Default constructor. <br>\r
* Instantiates Bits type as empty bits list.\r
- * \r
*/\r
public BitsType() {\r
super();\r
}\r
\r
/**\r
- * Overloaded constructor with explicit definition of bits assigned to\r
+ * Constructor with explicit definition of bits assigned to\r
* BitsType.\r
* \r
* @param bits\r
this.units = "";\r
}\r
\r
+ /**\r
+ * Constructor with explicit definition of bits assigned to\r
+ * BitsType and Units.\r
+ * <br>\r
+ * The default value of Bits Type is List of bits.\r
+ * \r
+ * @param bits The bits assigned for Bits Type\r
+ * @param units units for bits type\r
+ */\r
public BitsType(List<Bit> bits, String units) {\r
super();\r
this.bits = Collections.unmodifiableList(bits);\r
- ;\r
this.units = units;\r
}\r
\r