public class XmlRootNameLookup extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.util.LRUMap<com.fasterxml.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.
|
static 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 and Description |
---|
XmlRootNameLookup() |
Modifier and Type | Method and Description |
---|---|
protected QName |
_findRootName(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
Class<?> rootType) |
QName |
findRootName(Class<?> rootType,
com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) |
QName |
findRootName(com.fasterxml.jackson.databind.JavaType rootType,
com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) |
protected Object |
readResolve() |
public static final QName ROOT_NAME_FOR_NULL
"null"
.protected final transient com.fasterxml.jackson.databind.util.LRUMap<com.fasterxml.jackson.databind.type.ClassKey,QName> _rootNames
Note: changed to transient
for 2.3; no point in serializing such
state
protected Object readResolve()
public QName findRootName(com.fasterxml.jackson.databind.JavaType rootType, com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)
public QName findRootName(Class<?> rootType, com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)
Copyright © 2022 FasterXML. All rights reserved.