Added more Rpc markers to yang-binding.
authorTony Tkacik <ttkacik@cisco.com>
Wed, 23 Oct 2013 15:46:59 +0000 (17:46 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 23 Oct 2013 15:46:59 +0000 (17:46 +0200)
Change-Id: I7a0344382b7308cc5884e32682499527808773c5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/RpcImplementation.java [new file with mode: 0644]
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/RpcInput.java [new file with mode: 0644]
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/annotations/QName.java [new file with mode: 0644]

diff --git a/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/RpcImplementation.java b/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/RpcImplementation.java
new file mode 100644 (file)
index 0000000..fa64e16
--- /dev/null
@@ -0,0 +1,23 @@
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.yangtools.yang.binding;\r
+\r
+import java.util.Set;\r
+import java.util.concurrent.Future;\r
+\r
+import org.opendaylight.yangtools.yang.common.QName;\r
+import org.opendaylight.yangtools.yang.common.RpcResult;\r
+\r
+public interface RpcImplementation {\r
+\r
+    // Fixme: Change to RpcInput\r
+    Set<Class<? extends DataContainer>> getSupportedInputs();\r
+\r
+    // Fixme: Change to RpcInput\r
+    <T extends DataContainer> Future<RpcResult<?>> invoke(Class<T> type, T input);\r
+}\r
diff --git a/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/RpcInput.java b/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/RpcInput.java
new file mode 100644 (file)
index 0000000..546e1ba
--- /dev/null
@@ -0,0 +1,12 @@
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.yangtools.yang.binding;\r
+\r
+public interface RpcInput extends DataContainer {\r
+\r
+}\r
diff --git a/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/annotations/QName.java b/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/annotations/QName.java
new file mode 100644 (file)
index 0000000..082a673
--- /dev/null
@@ -0,0 +1,9 @@
+package org.opendaylight.yangtools.yang.binding.annotations;
+
+public @interface QName {
+
+    String namespace();
+    String revision();
+    String name();
+    
+}