Class XmlRootNameLookup
java.lang.Object
com.fasterxml.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 com.fasterxml.jackson.databind.util.LRUMap<com.fasterxml.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(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, Class<?> rootType) findRootName(com.fasterxml.jackson.databind.JavaType rootType, com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) findRootName(Class<?> rootType, com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) 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 com.fasterxml.jackson.databind.util.LRUMap<com.fasterxml.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.Note: changed to
transientfor 2.3; no point in serializing such state
-
-
Constructor Details
-
XmlRootNameLookup
public XmlRootNameLookup()
-
-
Method Details
-
readResolve
-
findRootName
public QName findRootName(com.fasterxml.jackson.databind.JavaType rootType, com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) -
findRootName
-
_findRootName
-