* Serialization service, which provides two-way serialization between Java
* Binding Data representation and NormalizedNode representation.
*/
-public interface BindingNormalizedNodeSerializer extends
- org.opendaylight.yangtools.binding.data.codec.api.BindingNormalizedNodeSerializer {
+public interface BindingNormalizedNodeSerializer {
/**
* Translates supplied Binding Instance Identifier into NormalizedNode
* @throws IllegalArgumentException
* If supplied Instance Identifier is not valid.
*/
- @Override
YangInstanceIdentifier toYangInstanceIdentifier(@Nonnull InstanceIdentifier<?> binding);
/**
* @return Binding Instance Identifier, or null if the instance identifier
* is not representable.
*/
- @Override
@Nullable
InstanceIdentifier<?> fromYangInstanceIdentifier(@Nonnull YangInstanceIdentifier dom);
* @throws IllegalArgumentException
* If supplied Instance Identifier is not valid.
*/
- @Override
<T extends DataObject> Entry<YangInstanceIdentifier, NormalizedNode<?, ?>> toNormalizedNode(
InstanceIdentifier<T> path, T data);
* @param data NormalizedNode representing data
* @return DOM Instance Identifier
*/
- @Override
@Nullable
Entry<InstanceIdentifier<?>, DataObject> fromNormalizedNode(@Nonnull YangInstanceIdentifier path,
NormalizedNode<?, ?> data);
* @param data NormalizedNode representing data
* @return Binding representation of Notification
*/
- @Override
@Nullable Notification fromNormalizedNodeNotification(@Nonnull SchemaPath path,@Nonnull ContainerNode data);
/**
* @param data NormalizedNode representing data
* @return Binding representation of RPC data
*/
- @Override
@Nullable DataObject fromNormalizedNodeRpcData(@Nonnull SchemaPath path,@Nonnull ContainerNode data);
/**
* @param data NormalizedNode representing notification data
* @return NormalizedNode representation of notification
*/
- @Override
@Nonnull ContainerNode toNormalizedNodeNotification(@Nonnull Notification data);
/**
* @param data NormalizedNode representing rpc data
* @return NormalizedNode representation of rpc data
*/
- @Override
@Nonnull ContainerNode toNormalizedNodeRpcData(@Nonnull DataContainer data);
}