org.axonframework.serializer.xml
Class XomToStringConverter

java.lang.Object
  extended by org.axonframework.serializer.AbstractContentTypeConverter<nu.xom.Document,String>
      extended by org.axonframework.serializer.xml.XomToStringConverter
All Implemented Interfaces:
ContentTypeConverter<nu.xom.Document,String>

public class XomToStringConverter
extends AbstractContentTypeConverter<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
XomToStringConverter()
           
 
Method Summary
 String convert(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
 
Methods inherited from class org.axonframework.serializer.AbstractContentTypeConverter
convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XomToStringConverter

public XomToStringConverter()
Method Detail

expectedSourceType

public Class<nu.xom.Document> expectedSourceType()
Description copied from interface: ContentTypeConverter
The expected type of input data.

Returns:
the expected data format in IntermediateRepresentation

targetType

public Class<String> targetType()
Description copied from interface: ContentTypeConverter
The returned type of IntermediateRepresentation

Returns:
the output data format in IntermediateRepresentation

convert

public String convert(nu.xom.Document original)
Description copied from interface: ContentTypeConverter
Converts the given object into another. Typically, these values are contained by a SerializedObject instance.

Parameters:
original - the value to convert
Returns:
the converted value


Copyright © 2010-2016. All Rights Reserved.