*/
package org.opendaylight.controller.sal.connect.api;
-import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.RpcResult;
-import org.opendaylight.yangtools.yang.data.api.CompositeNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
+import org.opendaylight.controller.md.sal.dom.api.DOMNotification;
+import org.opendaylight.controller.md.sal.dom.api.DOMRpcResult;
+import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
+import org.opendaylight.yangtools.yang.model.api.SchemaPath;
-public interface MessageTransformer<M> extends SchemaContextListener {
+public interface MessageTransformer<M> {
- CompositeNode toNotification(M message);
+ DOMNotification toNotification(M message);
- M toRpcRequest(QName rpc, CompositeNode node);
+ M toRpcRequest(SchemaPath rpc, NormalizedNode<?, ?> node);
- RpcResult<CompositeNode> toRpcResult(M message, QName rpc);
+ DOMRpcResult toRpcResult(M message, SchemaPath rpc);
}