Class XmlNodeConverter

  • All Implemented Interfaces:
    NodeConverter

    @Deprecated(forRemoval=true)
    public class XmlNodeConverter
    extends Object
    implements NodeConverter
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class is moved to lighty-codecs-util.
    The implementation of NodeConverter which serializes and deserializes binding independent representation into/from XML representation.
    See Also:
    JsonNodeConverter
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlNodeConverter​(org.opendaylight.yangtools.yang.model.api.EffectiveModelContext effectiveModelContext)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The only constructor will create an instance of XmlNodeConverter with the given SchemaContext.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void closeQuietly​(XMLStreamReader xmlStreamReader)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method is similar to the Closeables.closeQuietly(Reader) or other 'closeQuietly methods.
      org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?> deserialize​(org.opendaylight.yangtools.yang.model.api.SchemaNode schemaNode, Reader inputData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method deserializes the provided XML string representation (via Reader) interface into NormalizedNodes.
      Writer serializeData​(org.opendaylight.yangtools.yang.model.api.SchemaNode schemaNode, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?> normalizedNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method serializes the given NormalizedNode into its XML string representation.
      Writer serializeRpc​(org.opendaylight.yangtools.yang.model.api.SchemaNode schemaNode, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?> normalizedNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method serializes the input or output of a RPC given as NormalizedNode representation into XML string representation.
    • Constructor Detail

      • XmlNodeConverter

        public XmlNodeConverter​(org.opendaylight.yangtools.yang.model.api.EffectiveModelContext effectiveModelContext)
        Deprecated, for removal: This API element is subject to removal in a future version.
        The only constructor will create an instance of XmlNodeConverter with the given SchemaContext. This schema context will be used for proper RPC and Node resolution
        Parameters:
        effectiveModelContext - initial schema context