Added Augmentable interface to RPC inputs / outputs
[yangtools.git] / code-generator / binding-generator-util / src / main / java / org / opendaylight / yangtools / binding / generator / util / BindingTypes.java
diff --git a/code-generator/binding-generator-util/src/main/java/org/opendaylight/yangtools/binding/generator/util/BindingTypes.java b/code-generator/binding-generator-util/src/main/java/org/opendaylight/yangtools/binding/generator/util/BindingTypes.java
new file mode 100644 (file)
index 0000000..7192282
--- /dev/null
@@ -0,0 +1,29 @@
+package org.opendaylight.yangtools.binding.generator.util;
+
+import org.opendaylight.yangtools.sal.binding.model.api.ConcreteType;
+import org.opendaylight.yangtools.sal.binding.model.api.ParameterizedType;
+import org.opendaylight.yangtools.sal.binding.model.api.Type;
+import org.opendaylight.yangtools.yang.binding.*;
+import static org.opendaylight.yangtools.binding.generator.util.Types.*;
+public class BindingTypes {
+
+    public static final ConcreteType AUGMENTABLE =  typeForClass(Augmentable.class);
+    public static final ConcreteType AUGMENTATION =  typeForClass(Augmentation.class);
+    public static final ConcreteType BASE_IDENTITY =  typeForClass(BaseIdentity.class);
+    public static final ConcreteType DATA_OBJECT =  typeForClass(DataObject.class);
+    public static final ConcreteType DATA_ROOT =  typeForClass(DataRoot.class);
+    public static final ConcreteType IDENTIFIABLE =  typeForClass(Identifiable.class);
+    public static final ConcreteType IDENTIFIER =  typeForClass(Identifier.class);
+    public static final ConcreteType INSTANCE_IDENTIFIER =  typeForClass(InstanceIdentifier.class);
+    public static final ConcreteType NOTIFICATION =  typeForClass(Notification.class);
+    public static final ConcreteType NOTIFICATION_LISTENER =  typeForClass(NotificationListener.class);
+    public static final ConcreteType RPC_SERVICE =  typeForClass(RpcService.class);
+
+    private BindingTypes() {
+        
+    }
+
+    public static final ParameterizedType augmentable(Type t) {
+        return parameterizedTypeFor(AUGMENTABLE, t);
+    }
+}