Merge "Fix for bug 24."
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-generator-impl / src / main / java / org / opendaylight / controller / sal / binding / yang / types / BaseYangTypes.java
index a6425df693fb7a260e48b863fe0e9f9e2b5ef51c..374ad8bf9251463b0dc9e86896a105b4f64f20e0 100644 (file)
@@ -21,6 +21,7 @@ public class BaseYangTypes {
     private static Map<String, Type> typeMap = new HashMap<String, Type>();
 
     public static final Type BOOLEAN_TYPE = Types.typeForClass(Boolean.class);
+    public static final Type EMPTY_TYPE = Types.typeForClass(Boolean.class);
     public static final Type INT8_TYPE = Types.typeForClass(Byte.class);
     public static final Type INT16_TYPE = Types.typeForClass(Short.class);
     public static final Type INT32_TYPE = Types.typeForClass(Integer.class);
@@ -34,6 +35,7 @@ public class BaseYangTypes {
 
     static {
         typeMap.put("boolean", BOOLEAN_TYPE);
+        typeMap.put("empty", EMPTY_TYPE);
         typeMap.put("int8", INT8_TYPE);
         typeMap.put("int16", INT16_TYPE);
         typeMap.put("int32", INT32_TYPE);
@@ -62,5 +64,4 @@ public class BaseYangTypes {
             return null;
         }
     };
-
 }