Class XmlRootNameLookup

java.lang.Object
tools.jackson.dataformat.xml.util.XmlRootNameLookup
All Implemented Interfaces:
Serializable

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

    Fields
    Modifier and Type
    Field
    Description
    protected final tools.jackson.databind.util.SimpleLookupCache<tools.jackson.databind.type.ClassKey,QName>
    For efficient operation, let's try to minimize number of times we need to introspect root element name to use.
    static final QName
    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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected QName
    _findRootName(tools.jackson.databind.DatabindContext ctxt, Class<?> rootType)
     
    findRootName(tools.jackson.databind.DatabindContext ctxt, Class<?> rootType)
     
    findRootName(tools.jackson.databind.DatabindContext ctxt, tools.jackson.databind.JavaType rootType)
     
    protected Object
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ROOT_NAME_FOR_NULL

      public static final 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".
    • _rootNames

      protected final transient tools.jackson.databind.util.SimpleLookupCache<tools.jackson.databind.type.ClassKey,QName> _rootNames
      For efficient operation, let's try to minimize number of times we need to introspect root element name to use.
  • Constructor Details

    • XmlRootNameLookup

      public XmlRootNameLookup()
  • Method Details

    • readResolve

      protected Object readResolve()
    • findRootName

      public QName findRootName(tools.jackson.databind.DatabindContext ctxt, tools.jackson.databind.JavaType rootType)
    • findRootName

      public QName findRootName(tools.jackson.databind.DatabindContext ctxt, Class<?> rootType)
    • _findRootName

      protected QName _findRootName(tools.jackson.databind.DatabindContext ctxt, Class<?> rootType)