Class XmlRootNameLookup

  • All Implemented Interfaces:
    java.io.Serializable

    public class XmlRootNameLookup
    extends java.lang.Object
    implements java.io.Serializable
    Helper class used for efficiently finding root element name used with XML serializations.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.xml.namespace.QName ROOT_NAME_FOR_NULL
      If all we get to serialize is a null, there's no way to figure out expected root name; so let's just default to literal "null".
    • Field Detail

      • ROOT_NAME_FOR_NULL

        public static final javax.xml.namespace.QName ROOT_NAME_FOR_NULL
        If all we get to serialize is a null, there's no way to figure out expected root name; so let's just default to literal "null".
    • Constructor Detail

      • XmlRootNameLookup

        public XmlRootNameLookup()
    • Method Detail

      • findRootName

        public javax.xml.namespace.QName findRootName​(JavaType rootType,
                                                      MapperConfig<?> config)
      • findRootName

        public javax.xml.namespace.QName findRootName​(java.lang.Class<?> rootType,
                                                      MapperConfig<?> config)