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 implementation BindingNormalizedNodeSerializer and NodeConverter.
    Codec to serialize/deserialize Binding Independent data, RPC data, Notification data to/from Binding Aware data, RPC data, Notification data.
    • 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.