Class XomToStringConverter
- java.lang.Object
-
- io.axoniq.dataprotection.serialization.xml.XomToStringConverter
-
- All Implemented Interfaces:
ContentTypeConverter<nu.xom.Document,String>
public class XomToStringConverter extends Object implements ContentTypeConverter<nu.xom.Document,String>
Converter that converts XOM Document instances to a String. The Document is written as XML string.- Since:
- 2.2
- Author:
- Jochen Munz
-
-
Constructor Summary
Constructors Constructor Description XomToStringConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringconvert(nu.xom.Document original)Converts the given object into another.Class<nu.xom.Document>expectedSourceType()The expected type of input data.Class<String>targetType()The returned type of IntermediateRepresentation
-
-
-
Method Detail
-
expectedSourceType
public Class<nu.xom.Document> expectedSourceType()
Description copied from interface:ContentTypeConverterThe expected type of input data.- Specified by:
expectedSourceTypein interfaceContentTypeConverter<nu.xom.Document,String>- Returns:
- the expected data format in IntermediateRepresentation
-
targetType
public Class<String> targetType()
Description copied from interface:ContentTypeConverterThe returned type of IntermediateRepresentation- Specified by:
targetTypein interfaceContentTypeConverter<nu.xom.Document,String>- Returns:
- the output data format in IntermediateRepresentation
-
convert
public String convert(nu.xom.Document original)
Description copied from interface:ContentTypeConverterConverts the given object into another. Typically, these values are contained by aSerializedObjectinstance.- Specified by:
convertin interfaceContentTypeConverter<nu.xom.Document,String>- Parameters:
original- the value to convert- Returns:
- the converted value
-
-