Package io.lighty.codecs.api
Interface Codec<BA extends org.opendaylight.yangtools.yang.binding.DataObject>
-
- Type Parameters:
BA
- - type of Binding Aware data, RPC data or Notification data
- All Superinterfaces:
Deserializer<BA>
,Serializer<BA>
- All Known Implementing Classes:
DataCodec
@Deprecated(forRemoval=true) public interface Codec<BA extends org.opendaylight.yangtools.yang.binding.DataObject> extends Serializer<BA>, Deserializer<BA>
Deprecated, for removal: This API element is subject to removal in a future version.Codec is marked as deprecated because it can be replaced by direct implementationBindingNormalizedNodeSerializer
andNodeConverter
.Codec to serialize/deserialize Binding Independent data, RPC data, Notification data to/from Binding Aware data, RPC data, Notification data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer
getCodec()
Deprecated, for removal: This API element is subject to removal in a future version.Get used codec.org.opendaylight.yangtools.yang.model.api.EffectiveModelContext
getEffectiveModelContext()
Deprecated, for removal: This API element is subject to removal in a future version.NodeConverter
withJson()
Deprecated, for removal: This API element is subject to removal in a future version.NodeConverter
withXml()
Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from interface io.lighty.codecs.api.Deserializer
convertToBindingIndependentNotification, convertToBindingIndependentRpc, convertToNormalizedNode, deserializeIdentifier, deserializeIdentifier
-
Methods inherited from interface io.lighty.codecs.api.Serializer
convertBindingAwareList, convertIdentifier, convertToBindingAwareData, convertToBindingAwareNotification, convertToBindingAwareRpc, serializeXMLError
-
-
-
-
Method Detail
-
getCodec
org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer getCodec()
Deprecated, for removal: This API element is subject to removal in a future version.Get used codec.- Returns:
- codec
-
withJson
NodeConverter withJson()
Deprecated, for removal: This API element is subject to removal in a future version.
-
withXml
NodeConverter withXml()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getEffectiveModelContext
org.opendaylight.yangtools.yang.model.api.EffectiveModelContext getEffectiveModelContext()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-