Package org.hibernate.type.format.jaxb
Class JaxbXmlFormatMapper
java.lang.Object
org.hibernate.type.format.jaxb.JaxbXmlFormatMapper
- All Implemented Interfaces:
FormatMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic interfacestatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TfromString(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions) Deserializes an object from the character sequence.<T> TreadFromSource(JavaType<T> javaType, Object source, WrapperOptions options) booleansupportsSourceType(Class<?> sourceType) Checks that this mapper supports a type as a source type.booleansupportsTargetType(Class<?> targetType) Checks that this mapper supports a type as a target type.<T> StringtoString(T value, JavaType<T> javaType, WrapperOptions wrapperOptions) Serializes the object to a string.<T> voidwriteToTarget(T value, JavaType<T> javaType, Object target, WrapperOptions options)
-
Field Details
-
SHORT_NAME
- See Also:
-
-
Constructor Details
-
JaxbXmlFormatMapper
public JaxbXmlFormatMapper() -
JaxbXmlFormatMapper
public JaxbXmlFormatMapper(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
-
supportsSourceType
Description copied from interface:FormatMapperChecks that this mapper supports a type as a source type.- Specified by:
supportsSourceTypein interfaceFormatMapper- Parameters:
sourceType- the source type- Returns:
trueif the type is supported, false otherwise.
-
supportsTargetType
Description copied from interface:FormatMapperChecks that this mapper supports a type as a target type.- Specified by:
supportsTargetTypein interfaceFormatMapper- Parameters:
targetType- the target type- Returns:
trueif the type is supported, false otherwise.
-
writeToTarget
public <T> void writeToTarget(T value, JavaType<T> javaType, Object target, WrapperOptions options) throws IOException - Specified by:
writeToTargetin interfaceFormatMapper- Throws:
IOException
-
readFromSource
public <T> T readFromSource(JavaType<T> javaType, Object source, WrapperOptions options) throws IOException - Specified by:
readFromSourcein interfaceFormatMapper- Throws:
IOException
-