Class JacksonXmlFormatMapper
java.lang.Object
org.hibernate.type.format.jackson.JacksonXmlFormatMapper
- All Implemented Interfaces:
FormatMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJacksonXmlFormatMapper(boolean legacyFormat) JacksonXmlFormatMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) JacksonXmlFormatMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean legacyFormat) JacksonXmlFormatMapper(FormatMapperCreationContext creationContext) -
Method Summary
Modifier and TypeMethodDescription<T> TfromString(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions) Deserializes an object from the character sequence.<T> StringtoString(T value, JavaType<T> javaType, WrapperOptions wrapperOptions) Serializes the object to a string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.format.FormatMapper
readFromSource, supportsSourceType, supportsTargetType, writeToTarget
-
Field Details
-
SHORT_NAME
- See Also:
-
-
Constructor Details
-
JacksonXmlFormatMapper
public JacksonXmlFormatMapper() -
JacksonXmlFormatMapper
public JacksonXmlFormatMapper(boolean legacyFormat) -
JacksonXmlFormatMapper
-
JacksonXmlFormatMapper
public JacksonXmlFormatMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
JacksonXmlFormatMapper
public JacksonXmlFormatMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean legacyFormat)
-
-
Method Details
-
fromString
public <T> T fromString(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions) Description copied from interface:FormatMapperDeserializes an object from the character sequence.- Specified by:
fromStringin interfaceFormatMapper
-
toString
Description copied from interface:FormatMapperSerializes the object to a string.- Specified by:
toStringin interfaceFormatMapper
-