ObjectMapper that will read and write XML instead of JSON,
using XML-backed com.fasterxml.jackson.core.JsonFactory
implementation (XmlFactory).
Mapper itself overrides some aspects of functionality to try to handle data binding aspects as similar to JAXB as possible.
Note that most of configuration should be done by pre-constructing
JacksonXmlModule explicitly, instead of relying on default settings.
| Modifier and Type | Class and Description |
|---|---|
| public static class | XmlMapper.Builder
Builder implementation for constructing |
| Modifier and Type | Field and Description |
|---|---|
| protected final JacksonXmlModule | |
| protected static final JacksonXmlModule | |
| protected static final DefaultXmlPrettyPrinter | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected TypeResolverBuilder | _constructDefaultTypeResolverBuilder(ObjectMapper.
Overrides com. TypeResolverBuilder subtypes.
|
| public static XmlMapper. | |
| public static XmlMapper. | |
| public ObjectMapper | |
| public ObjectMapper | |
| public XmlMapper | copy()
Overrides com. ObjectMapper instance that
has same initial configuration as this instance.
|
| public ObjectMapper | |
| public ObjectMapper | |
| public ObjectMapper | |
| public ObjectMapper | |
| public XmlFactory | getFactory()
Overrides com. JsonFactory) codec will use for data binding.
|
| public <T> T | readValue(XMLStreamReader r, Class<T> valueType)
Method for reading a single XML value from given XML-specific input
source; useful for incremental data-binding, combining traversal using
basic Stax |
| public <T> T | readValue(XMLStreamReader r, TypeReference<T> valueTypeRef)
Method for reading a single XML value from given XML-specific input
source; useful for incremental data-binding, combining traversal using
basic Stax |
| public <T> T | readValue(XMLStreamReader r, JavaType valueType)
Method for reading a single XML value from given XML-specific input
source; useful for incremental data-binding, combining traversal using
basic Stax |
| public XmlMapper | setDefaultUseWrapper(boolean state)
Deprecated
Since 2.10 use
Since 2.7
Builder#defaultUseWrapper(boolean) instead
|
| public void | |
| protected void | setXMLTextElementName(String name)
Deprecated
Since 2.10 use
Method called by Builder#nameForTextElement(String) instead
JacksonXmlModule to pass configuration
information to XmlFactory, during registration; NOT
exposed as public method since configuration should be done
via JacksonXmlModule.
|
| public Version | version()
Overrides com. Implements com. |
| public void | writeValue(XMLStreamWriter w0, Object value)
Method for serializing given value using specific |
| public static XmlMapper. |