Fixed bugs in naming conventions of packages.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-api / src / main / java / org / opendaylight / controller / yang / model / api / type / BitsTypeDefinition.java
diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/BitsTypeDefinition.java b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/BitsTypeDefinition.java
new file mode 100644 (file)
index 0000000..e00b1a8
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.yang.model.api.type;
+
+import java.util.List;
+
+import org.opendaylight.controller.yang.model.api.SchemaNode;
+import org.opendaylight.controller.yang.model.api.TypeDefinition;
+
+public interface BitsTypeDefinition extends TypeDefinition<BitsTypeDefinition> {
+
+    public List<Bit> getBits();
+
+    interface Bit extends SchemaNode {
+        /**
+         * The position value MUST be in the range 0 to 4294967295, and it MUST
+         * be unique within the bits type.
+         * 
+         * @return The position value of bit in range from 0 to 4294967295.
+         */
+        public Long getPosition();
+
+        public String getName();
+    }
+}