Remove yangtools APIs 98/63398/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Sep 2017 09:22:23 +0000 (11:22 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Sep 2017 09:22:23 +0000 (11:22 +0200)
Downstream consumers are not using them anymore, remove them.

Change-Id: Idd9d8f6b2d1f7b3ab719904a694c342d2e79f210
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/pom.xml
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTree.java [deleted file]
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTreeFactory.java [deleted file]
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTreeNode.java [deleted file]
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeCachingCodec.java [deleted file]
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeCodec.java [deleted file]
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeSerializer.java [deleted file]
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeWriterFactory.java [deleted file]

index 98d8700d25db07c82905707498174dc2316f9c11..bb41aeabc40a293ce31986d5af988093f82fa69a 100644 (file)
@@ -96,7 +96,6 @@
                             org.opendaylight.mdsal.binding.dom.codec.*,
                             org.opendaylight.mdsal.binding.dom.codec.gen.impl.*,
                             org.opendaylight.mdsal.binding.dom.codec.impl.*,
-                            org.opendaylight.yangtools.binding.data.codec.*,
                             org.opendaylight.yangtools.binding.data.codec.gen.impl.*,
                             org.opendaylight.yangtools.binding.data.codec.impl.*,
                             ;-split-package:=error
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTree.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTree.java
deleted file mode 100644 (file)
index 147d543..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.api;
-
-import javax.annotation.Nullable;
-import org.opendaylight.yangtools.yang.binding.DataObject;
-import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
-
-/**
- *
- * Navigable tree representing hierarchy of Binding to Normalized Node codecs
- *
- * This navigable tree is associated to conrete set of YANG models, represented by SchemaContext and
- * provides access to subtree specific serialization context.
- *
- * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTree} instead.
- **/
-@Deprecated
-public interface BindingCodecTree {
-
-      @Nullable <T extends DataObject> BindingCodecTreeNode<T> getSubtreeCodec(InstanceIdentifier<T> path);
-
-      @Nullable BindingCodecTreeNode<?> getSubtreeCodec(YangInstanceIdentifier path);
-
-      @Nullable BindingCodecTreeNode<?> getSubtreeCodec(SchemaPath path);
-
-}
\ No newline at end of file
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTreeFactory.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTreeFactory.java
deleted file mode 100644 (file)
index daa03c2..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.api;
-
-import com.google.common.annotations.Beta;
-import org.opendaylight.mdsal.binding.generator.util.BindingRuntimeContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-
-
-/**
- *
- * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory}
- *             instead.
- */
-@Deprecated
-public interface BindingCodecTreeFactory {
-
-    /**
-     *
-     * Creates Binding Codec Tree for specified Binding runtime context.
-     *
-     * @param context
-     *            Binding Runtime Context for which Binding codecs should be
-     *            instantiated.
-     * @return Binding Codec Tree for specified Binding runtime context.
-     */
-    BindingCodecTree create(BindingRuntimeContext context);
-
-    /**
-     *
-     * Creates Binding Codec Tree for specified Binding runtime context.
-     *
-     * @param context
-     *            Binding Runtime Context for which Binding codecs should be
-     *            instantiated.
-     * @param bindingClasses
-     *            Binding Runtime Context will be constructed using bindings
-     *            which contains specified classes, in order to support
-     *            deserialization in multi-classloader environment.
-     * @return Binding Codec Tree for specified Binding runtime context.
-     */
-    @Beta
-   BindingCodecTree create(SchemaContext context, Class<?>... bindingClasses);
-
-}
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTreeNode.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingCodecTreeNode.java
deleted file mode 100644 (file)
index ffc97fc..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.api;
-
-import com.google.common.annotations.Beta;
-import com.google.common.base.Optional;
-import com.google.common.collect.ImmutableCollection;
-import java.util.List;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import org.opendaylight.yangtools.yang.binding.BindingStreamEventWriter;
-import org.opendaylight.yangtools.yang.binding.DataObject;
-import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
-import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter;
-
-/**
- * Subtree codec specific to model subtree between Java Binding and
- * NormalizedNode.
- *
- */
-@Deprecated
-public interface BindingCodecTreeNode<T extends DataObject> extends BindingNormalizedNodeCodec<T> {
-
-    /**
-     *
-     * Returns binding class of interface which represents API of current
-     * schema node.
-     *
-     * The result is same as invoking {@link DataObject#getImplementedInterface()}
-     * on instance of data.
-     *
-     * @return interface which defines API of binding representation of data.
-     */
-    @Nonnull
-    Class<T> getBindingClass();
-
-    /**
-     *
-     * Returns child context as if it was walked by
-     * {@link BindingStreamEventWriter}. This means that to enter case, one must
-     * issue getChild(ChoiceClass).getChild(CaseClass).
-     *
-     * @param childClass Child class by Biding Stream navigation
-     * @return Context of child
-     * @throws IllegalArgumentException
-     *             If supplied child class is not valid in specified context.
-     */
-    @Nonnull
-    <E extends DataObject> BindingCodecTreeNode<E> streamChild(@Nonnull Class<E> childClass);
-
-    /**
-     *
-     * Returns child context as if it was walked by
-     * {@link BindingStreamEventWriter}. This means that to enter case, one must
-     * issue getChild(ChoiceClass).getChild(CaseClass).
-     *
-     * This method differs from {@link #streamChild(Class)}, that is less
-     * stricter for interfaces representing augmentation and cases, that
-     * may return {@link BindingCodecTreeNode} even if augmentation interface
-     * containing same data was supplied and does not represent augmentation
-     * of this node.
-     *
-     * @param childClass
-     * @return Context of child or Optional absent is supplied class is not
-     *         applicable in context.
-     */
-    <E extends DataObject> Optional<? extends BindingCodecTreeNode<E>> possibleStreamChild(@Nonnull Class<E> childClass);
-
-    /**
-     * Returns nested node context using supplied YANG Instance Identifier
-     *
-     * @param child
-     *            Yang Instance Identifier Argument
-     * @return Context of child
-     * @throws IllegalArgumentException
-     *             If supplied argument does not represent valid child.
-     */
-    @Nonnull
-    BindingCodecTreeNode<?> yangPathArgumentChild(@Nonnull YangInstanceIdentifier.PathArgument child);
-
-    /**
-     * Returns nested node context using supplied Binding Instance Identifier
-     * and adds YANG instance identifiers to supplied list.
-     *
-     * @param arg
-     *            Binding Instance Identifier Argument
-     * @param builder
-     *            Mutable instance of list, which is appended by YangInstanceIdentifiers
-     *            as tree is walked. Use null if such side-product is not needed.
-     * @return Context of child
-     * @throws IllegalArgumentException
-     *             If supplied argument does not represent valid child.
-     */
-    @Nonnull
-    BindingCodecTreeNode<?> bindingPathArgumentChild(@Nonnull InstanceIdentifier.PathArgument arg,
-            @Nullable List<YangInstanceIdentifier.PathArgument> builder);
-
-    /**
-     *
-     * Returns codec which uses caches serialization / deserialization results
-     *
-     * Caching may introduce performance penalty to serialization / deserialization
-     * but may decrease use of heap for repetitive objects.
-     *
-     *
-     * @param cacheSpecifier Set of objects, for which cache may be in place
-     * @return Codec whihc uses cache for serialization / deserialization.
-     */
-    @Nonnull
-    BindingNormalizedNodeCachingCodec<T> createCachingCodec(@Nonnull
-            ImmutableCollection<Class<? extends DataObject>> cacheSpecifier);
-
-    @Beta
-    void writeAsNormalizedNode(T data, NormalizedNodeStreamWriter writer);
-
-    /**
-     * Serializes path argument for current node.
-     *
-     * @param arg Binding Path Argument, may be null if Binding Instance Identifier does not have
-     *        representation for current node (e.g. choice or case).
-     * @return Yang Path Argument, may be null if Yang Instance Identifier does not have
-     *         representation for current node (e.g. case).
-     * @throws IllegalArgumentException If supplied {@code arg} is not valid.
-     */
-    @Beta
-    @Nullable YangInstanceIdentifier.PathArgument serializePathArgument(@Nullable InstanceIdentifier.PathArgument arg);
-
-    /**
-     * Deserializes path argument for current node.
-     *
-     * @param arg Yang Path Argument, may be null if Yang Instance Identifier does not have
-     *         representation for current node (e.g. case).
-     * @return Binding Path Argument, may be null if Binding Instance Identifier does not have
-     *        representation for current node (e.g. choice or case).
-     * @throws IllegalArgumentException If supplied {@code arg} is not valid.
-     */
-    @Beta
-    @Nullable InstanceIdentifier.PathArgument deserializePathArgument(@Nullable YangInstanceIdentifier.PathArgument arg);
-
-    Object getSchema();
-}
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeCachingCodec.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeCachingCodec.java
deleted file mode 100644 (file)
index 4fbf569..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.api;
-
-import org.opendaylight.yangtools.yang.binding.DataObject;
-
-/**
- * Caching variant of Binding to Normalized Node codec.
- *
- * Caching may introduce performance penalty to serialization / deserialization
- * but may decrease use of heap for repetitive objects.
- *
- * @param <T> Binding representtion of data
- */
-@Deprecated
-public interface BindingNormalizedNodeCachingCodec<T extends DataObject> extends BindingNormalizedNodeCodec<T>, AutoCloseable {
-    /**
-     * Invoking close will invalidate this codec and any of its child
-     * codecs and will invalidate cache.
-     *
-     * Any subsequent calls to this codec will fail with {@link IllegalStateException}
-     * thrown.
-     */
-    @Override
-    void close();
-}
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeCodec.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeCodec.java
deleted file mode 100644 (file)
index 3fa6e4d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.api;
-
-import javax.annotation.Nonnull;
-import org.opendaylight.yangtools.yang.binding.DataObject;
-import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
-
-/**
- *
- * Codec providing serialization and deserializiation between Binding
- * and NormalizedNode representation of data.
- *
- *
- * @param <T> Binding representation of data
- */
-@Deprecated
-public interface BindingNormalizedNodeCodec<T extends DataObject> {
-
-    /**
-     * Converts from Normalized Node to Binding representation of data.
-     *
-     * @param data Normalized Node representation of data
-     * @return Binding representation of data
-     */
-    @Nonnull T deserialize(@Nonnull NormalizedNode<?,?> data);
-
-    /**
-     * Converts from  Binding to Normalized Node representation of data.
-     *
-     * @param data Binding representation of data
-     * @return Normalized Node representation of data
-     */
-    @Nonnull NormalizedNode<?,?> serialize(@Nonnull T data);
-
-}
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeSerializer.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeSerializer.java
deleted file mode 100644 (file)
index 18c2708..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.api;
-
-import java.util.Map.Entry;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import org.opendaylight.yangtools.yang.binding.DataContainer;
-import org.opendaylight.yangtools.yang.binding.DataObject;
-import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import org.opendaylight.yangtools.yang.binding.Notification;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
-import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
-import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
-
-/**
- * Serialization service, which provides two-way serialization between Java
- * Binding Data representation and NormalizedNode representation.
- */
-@Deprecated
-public interface BindingNormalizedNodeSerializer {
-
-    /**
-     * Translates supplied Binding Instance Identifier into NormalizedNode
-     * instance identifier.
-     *
-     * @param binding
-     *            Binding Instance Identifier
-     * @return DOM Instance Identifier
-     * @throws IllegalArgumentException
-     *             If supplied Instance Identifier is not valid.
-     */
-    YangInstanceIdentifier toYangInstanceIdentifier(@Nonnull InstanceIdentifier<?> binding);
-
-    /**
-     * Translates supplied YANG Instance Identifier into Binding instance
-     * identifier.
-     *
-     * @param dom
-     *            YANG Instance Identifier
-     * @return Binding Instance Identifier, or null if the instance identifier
-     *         is not representable.
-     */
-    @Nullable
-    InstanceIdentifier<?> fromYangInstanceIdentifier(@Nonnull YangInstanceIdentifier dom);
-
-    /**
-     * Translates supplied Binding Instance Identifier and data into
-     * NormalizedNode representation.
-     *
-     * @param path
-     *            Binding Instance Identifier pointing to data
-     * @param data
-     *            Data object representing data
-     * @return NormalizedNode representation
-     * @throws IllegalArgumentException
-     *             If supplied Instance Identifier is not valid.
-     */
-    <T extends DataObject> Entry<YangInstanceIdentifier, NormalizedNode<?, ?>> toNormalizedNode(
-            InstanceIdentifier<T> path, T data);
-
-    /**
-     * Translates supplied YANG Instance Identifier and NormalizedNode into
-     * Binding data.
-     *
-     * @param path Binding Instance Identifier
-     * @param data NormalizedNode representing data
-     * @return DOM Instance Identifier
-     */
-    @Nullable
-    Entry<InstanceIdentifier<?>, DataObject> fromNormalizedNode(@Nonnull YangInstanceIdentifier path,
-            NormalizedNode<?, ?> data);
-
-    /**
-     * Translates supplied NormalizedNode Notification into Binding data.
-     *
-     * @param path Schema Path of Notification, schema path is absolute, and consists of Notification QName.
-     * @param data NormalizedNode representing data
-     * @return Binding representation of Notification
-     */
-    @Nullable Notification fromNormalizedNodeNotification(@Nonnull SchemaPath path,@Nonnull ContainerNode data);
-
-    /**
-     * Translates supplied NormalizedNode RPC input or output into Binding data.
-     *
-     * @param path Schema path of RPC data, Schema path consists of rpc QName and input / output QName.
-     * @param data NormalizedNode representing data
-     * @return Binding representation of RPC data
-     */
-    @Nullable DataObject fromNormalizedNodeRpcData(@Nonnull SchemaPath path,@Nonnull ContainerNode data);
-
-    /**
-     * Translates supplied Binding Notification or output into NormalizedNode notification.
-     *
-     * @param data NormalizedNode representing notification data
-     * @return NormalizedNode representation of notification
-     */
-    @Nonnull ContainerNode toNormalizedNodeNotification(@Nonnull Notification data);
-
-    /**
-     * Translates supplied Binding RPC input or output into NormalizedNode data.
-     *
-     * @param data NormalizedNode representing rpc data
-     * @return NormalizedNode representation of rpc data
-     */
-    @Nonnull ContainerNode toNormalizedNodeRpcData(@Nonnull DataContainer data);
-}
diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeWriterFactory.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/api/BindingNormalizedNodeWriterFactory.java
deleted file mode 100644 (file)
index 2183290..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.binding.data.codec.api;
-
-import java.util.Map.Entry;
-import javax.annotation.Nonnull;
-import org.opendaylight.yangtools.yang.binding.BindingStreamEventWriter;
-import org.opendaylight.yangtools.yang.binding.DataContainer;
-import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import org.opendaylight.yangtools.yang.binding.Notification;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
-import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter;
-
-/**
- *
- * Factory for {@link BindingStreamEventWriter}, which provides stream writers
- * which translates data and delegates calls to
- * {@link NormalizedNodeStreamWriter}.
- *
- */
-@Deprecated
-public interface BindingNormalizedNodeWriterFactory {
-
-    /**
-     *
-     * Creates a {@link BindingStreamEventWriter} for data tree path which will
-     * translate to NormalizedNode model and invoke proper events on supplied
-     * {@link NormalizedNodeStreamWriter}.
-     * <p>
-     * Also provides translation of supplied Instance Identifier to
-     * {@link YangInstanceIdentifier} so client code, does not need to translate
-     * that separately.
-     * <p>
-     * If {@link YangInstanceIdentifier} is not needed, please use
-     * {@link #newWriter(InstanceIdentifier, NormalizedNodeStreamWriter)}
-     * method to conserve resources.
-     *
-     * @param path
-     *            Binding Path in conceptual data tree, for which writer should
-     *            be instantiated
-     * @param domWriter
-     *            Stream writer on which events will be invoked.
-     * @return Instance Identifier and {@link BindingStreamEventWriter}
-     *         which will write to supplied {@link NormalizedNodeStreamWriter}.
-     * @throws IllegalArgumentException If supplied Instance Identifier is not valid.
-     */
-    @Nonnull Entry<YangInstanceIdentifier, BindingStreamEventWriter> newWriterAndIdentifier(@Nonnull InstanceIdentifier<?> path,
-            @Nonnull NormalizedNodeStreamWriter domWriter);
-
-    /**
-     *
-     * Creates a {@link BindingStreamEventWriter} for data tree path which will
-     * translate to NormalizedNode model and invoke proper events on supplied
-     * {@link NormalizedNodeStreamWriter}.
-     * <p>
-     *
-     * This variation does not provide YANG instance identifier and is useful
-     * for use-cases, where {@link InstanceIdentifier} translation is done
-     * in other way, or YANG instance identifier is unnecessary (e.g. notifications, RPCs).
-     *
-     * @param path Binding Path in conceptual data tree, for which writer should
-     *            be instantiated
-     * @param domWriter Stream writer on which events will be invoked.
-     * @return {@link BindingStreamEventWriter}
-     *         which will write to supplied {@link NormalizedNodeStreamWriter}.
-     * @throws IllegalArgumentException If supplied Instance Identifier is not valid.
-     */
-    @Nonnull
-    BindingStreamEventWriter newWriter(@Nonnull InstanceIdentifier<?> path,
-            @Nonnull NormalizedNodeStreamWriter domWriter);
-
-    /**
-     *
-     * Creates a {@link BindingStreamEventWriter} for rpc data which will
-     * translate to NormalizedNode model and invoke proper events on supplied
-     * {@link NormalizedNodeStreamWriter}.
-     *
-     * @param rpcInputOrOutput Binding class representing RPC input or output,
-     *            for which writer should be instantiated
-     * @param domWriter
-     *            Stream writer on which events will be invoked.
-     * @return {@link BindingStreamEventWriter} which will write to supplied
-     *         {@link NormalizedNodeStreamWriter}.
-     */
-    @Nonnull
-    BindingStreamEventWriter newRpcWriter(@Nonnull Class<? extends DataContainer> rpcInputOrOutput,
-            @Nonnull NormalizedNodeStreamWriter domWriter);
-
-    /**
-     *
-     * Creates a {@link BindingStreamEventWriter} for notification which will
-     * translate to NormalizedNode model and invoke proper events on supplied
-     * {@link NormalizedNodeStreamWriter}.
-     *
-     * @param notification Binding class representing notification,
-     *            for which writer should be instantiated
-     * @param domWriter
-     *            Stream writer on which events will be invoked.
-     * @return {@link BindingStreamEventWriter} which will write to supplied
-     *         {@link NormalizedNodeStreamWriter}.
-     */
-    @Nonnull
-    BindingStreamEventWriter newNotificationWriter(@Nonnull Class<? extends Notification> notification,
-            @Nonnull NormalizedNodeStreamWriter domWriter);
-}