|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.ObjectCodec
org.codehaus.jackson.map.ObjectMapper
com.fasterxml.jackson.xml.XmlMapper
public class XmlMapper
Customized ObjectMapper
that will read and write XML instead of JSON,
using XML-backed JsonFactory
implementation (XmlFactory
).
Mapper itself overrides some aspects of functionality to try to handle data binding aspects as similar to JAXB as possible.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.codehaus.jackson.map.ObjectMapper |
---|
org.codehaus.jackson.map.ObjectMapper.DefaultTypeResolverBuilder, org.codehaus.jackson.map.ObjectMapper.DefaultTyping |
Field Summary |
---|
Fields inherited from class org.codehaus.jackson.map.ObjectMapper |
---|
_defaultTyper, _deserializationConfig, _deserializerProvider, _jsonFactory, _rootDeserializers, _serializationConfig, _serializerFactory, _serializerProvider, _subtypeResolver, _valueClassLoader, _visibilityChecker, DEFAULT_ANNOTATION_INTROSPECTOR, DEFAULT_INTROSPECTOR, STD_VISIBILITY_CHECKER |
Constructor Summary | |
---|---|
XmlMapper()
|
|
XmlMapper(XmlFactory xmlFactory)
|
Method Summary | |
---|---|
protected org.codehaus.jackson.PrettyPrinter |
_defaultPrettyPrinter()
XML indentation differs from JSON indentation, thereby need to change default pretty-printer |
org.codehaus.jackson.map.ObjectMapper |
configure(FromXmlParser.Feature f,
boolean state)
|
org.codehaus.jackson.map.ObjectMapper |
configure(ToXmlGenerator.Feature f,
boolean state)
|
org.codehaus.jackson.Version |
version()
Method that will return version information stored in and read from jar that contains this class. |
Methods inherited from class org.codehaus.jackson.map.ObjectMapper |
---|
_configAndWriteValue, _configAndWriteValue, _convert, _createDeserializationContext, _findRootDeserializer, _initForReading, _readMapAndClose, _readValue, canDeserialize, canSerialize, configure, configure, configure, configure, convertValue, convertValue, convertValue, copyDeserializationConfig, copySerializationConfig, createArrayNode, createObjectNode, defaultPrettyPrintingWriter, disableDefaultTyping, enableDefaultTyping, enableDefaultTyping, enableDefaultTyping, enableDefaultTypingAsProperty, filteredWriter, generateJsonSchema, generateJsonSchema, getDeserializationConfig, getDeserializerProvider, getJsonFactory, getNodeFactory, getSerializationConfig, getSerializerProvider, getSubtypeResolver, getVisibilityChecker, prettyPrintingWriter, reader, reader, reader, reader, reader, readTree, readTree, readTree, readTree, readTree, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, registerModule, registerSubtypes, registerSubtypes, setDefaltTyping, setDefaultTyping, setDeserializationConfig, setDeserializerProvider, setNodeFactory, setSerializationConfig, setSerializerFactory, setSerializerProvider, setSubtypeResolver, setVisibilityChecker, treeAsTokens, treeToValue, typedWriter, typedWriter, typedWriter, updatingReader, valueToTree, viewWriter, writer, writeTree, writeTree, writeValue, writeValue, writeValue, writeValue, writeValue, writeValueAsBytes, writeValueAsString, writeValueUsingView, writeValueUsingView, writeValueUsingView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlMapper()
public XmlMapper(XmlFactory xmlFactory)
Method Detail |
---|
public org.codehaus.jackson.Version version()
version
in interface org.codehaus.jackson.Versioned
version
in class org.codehaus.jackson.map.ObjectMapper
public org.codehaus.jackson.map.ObjectMapper configure(ToXmlGenerator.Feature f, boolean state)
public org.codehaus.jackson.map.ObjectMapper configure(FromXmlParser.Feature f, boolean state)
protected org.codehaus.jackson.PrettyPrinter _defaultPrettyPrinter()
_defaultPrettyPrinter
in class org.codehaus.jackson.map.ObjectMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |