Introduce top-level pom file.
[mdsal.git] / code-generator / binding-model-api / src / main / java / org / opendaylight / yangtools / sal / binding / model / api / Enumeration.java
index 9599a7af22840b45425693cabb01edb95d9bd009..9709be32def1212aa5b66ce9024f02891c9e1279 100644 (file)
@@ -9,32 +9,36 @@ package org.opendaylight.yangtools.sal.binding.model.api;
 
 import java.util.List;
 
+import org.opendaylight.yangtools.yang.model.api.DocumentedNode;
+
 /**
  * Interface provide methods for reading data of enumeration class.
  */
 public interface Enumeration extends GeneratedType {
 
     /**
-     * 
+     *
      * Returns list of annotation definitions associated with enumeration type.
-     * 
+     *
      * @return list of annotation definitions associated with enumeration type.
-     * 
+     *
      */
+    @Override
     List<AnnotationType> getAnnotations();
 
+    @Override
     Type getParentType();
 
     /**
      * Returns list of the couples - name and value.
-     * 
+     *
      * @return list of the enumeration pairs.
      */
     List<Pair> getValues();
 
     /**
      * Formats enumeration according to rules of the programming language.
-     * 
+     *
      * @return string with source code in some programming language
      */
     String toFormattedString();
@@ -43,18 +47,18 @@ public interface Enumeration extends GeneratedType {
      * Interface is used for reading enumeration item. It means item's name and
      * its value.
      */
-    interface Pair {
+    interface Pair extends DocumentedNode {
 
         /**
          * Returns the name of the enumeration item.
-         * 
+         *
          * @return the name of the enumeration item.
          */
         String getName();
 
         /**
          * Returns value of the enumeration item.
-         * 
+         *
          * @return the value of the enumeration item.
          */
         Integer getValue();