Fix NPE when creating a producer after shard was unregistered
[mdsal.git] / binding2 / mdsal-binding2-generator-api / src / main / java / org / opendaylight / mdsal / binding2 / model / api / Enumeration.java
index fb22ce0717a263a763dfbc5d1c0d546ccf0faf87..11b9ddf552e39619aa49fcb3367bc59397aef885 100644 (file)
@@ -11,7 +11,6 @@ package org.opendaylight.mdsal.binding2.model.api;
 import com.google.common.annotations.Beta;
 import java.util.List;
 import org.opendaylight.yangtools.yang.model.api.DocumentedNode;
-import sun.reflect.annotation.AnnotationType;
 
 /**
  *
@@ -60,6 +59,13 @@ public interface Enumeration extends GeneratedType {
          */
         String getName();
 
+        /**
+         * Returns the binding representation for the name of the enumeration item.
+         *
+         * @return the binding representation for the name of the enumeration item.
+         */
+        String getMappedName();
+
         /**
          * Returns value of the enumeration item.
          *
@@ -67,4 +73,4 @@ public interface Enumeration extends GeneratedType {
          */
         int getValue();
     }
-}
+}
\ No newline at end of file