Bug 2872: Generated Java Enumerations should contain mapping to the string counter...
[mdsal.git] / binding / mdsal-binding-generator-api / src / main / java / org / opendaylight / yangtools / sal / binding / model / api / Enumeration.java
index 9709be32def1212aa5b66ce9024f02891c9e1279..9ca7f436512aad34aa151b49186b342e1212969b 100644 (file)
@@ -50,12 +50,19 @@ public interface Enumeration extends GeneratedType {
     interface Pair extends DocumentedNode {
 
         /**
-         * Returns the name of the enumeration item.
+         * Returns the name of the enumeration item as it is specified in the input yang.
          *
-         * @return the name of the enumeration item.
+         * @return the name of the enumeration item as it is specified in the input yang.
          */
         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.
          *