Module tools.jackson.dataformat.xml
Class XmlRootNameLookup
java.lang.Object
tools.jackson.dataformat.xml.util.XmlRootNameLookup
- All Implemented Interfaces:
Serializable
Helper class used for efficiently finding root element name used with
XML serializations.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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 QNameIf 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Field Details
-
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> _rootNamesFor 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
-
findRootName
public QName findRootName(tools.jackson.databind.DatabindContext ctxt, tools.jackson.databind.JavaType rootType) -
findRootName
-
_findRootName
-