Disconnect mdsal-bind-dom-codec yangtools/mdsal APIs
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / yangtools / binding / data / codec / api / BindingNormalizedNodeCodec.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.binding.data.codec.api;
9
10 import javax.annotation.Nonnull;
11 import org.opendaylight.yangtools.yang.binding.DataObject;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13
14 /**
15  *
16  * Codec providing serialization and deserializiation between Binding
17  * and NormalizedNode representation of data.
18  *
19  *
20  * @param <T> Binding representation of data
21  */
22 @Deprecated
23 public interface BindingNormalizedNodeCodec<T extends DataObject> {
24
25     /**
26      * Converts from Normalized Node to Binding representation of data.
27      *
28      * @param data Normalized Node representation of data
29      * @return Binding representation of data
30      */
31     @Nonnull T deserialize(@Nonnull NormalizedNode<?,?> data);
32
33     /**
34      * Converts from  Binding to Normalized Node representation of data.
35      *
36      * @param data Binding representation of data
37      * @return Normalized Node representation of data
38      */
39     @Nonnull NormalizedNode<?,?> serialize(@Nonnull T data);
40
41 }