--- /dev/null
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.controller.model.api.type;\r
+\r
+import java.util.List;\r
+\r
+import org.opendaylight.controller.yang.model.api.SchemaNode;\r
+import org.opendaylight.controller.yang.model.api.TypeDefinition;\r
+\r
+public interface EnumTypeDefinition extends TypeDefinition<EnumTypeDefinition> {\r
+\r
+ List<EnumPair> getValues();\r
+\r
+ interface EnumPair extends SchemaNode {\r
+\r
+ /**\r
+ * The name to specify each assigned name of an enumeration type.\r
+ * \r
+ * @return name of each assigned name of an enumeration type.\r
+ */\r
+ public String getName();\r
+\r
+ /**\r
+ * The "value" statement, which is optional, is used to associate an\r
+ * integer value with the assigned name for the enum. This integer value\r
+ * MUST be in the range -2147483648 to 2147483647, and it MUST be unique\r
+ * within the enumeration type.\r
+ * \r
+ * @return integer value assigned to enumeration\r
+ */\r
+ public Integer getValue();\r
+ }\r
+}\r