public class SimpleXMLFormatConverter extends java.lang.Object implements XMLFormatConverter
XMLFormatConverter
interface. Just
appends a comment to the end of the XML content. Can be used on any XML format for
demonstration and testing.XMLConversionService
Constructor and Description |
---|
SimpleXMLFormatConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertXML(java.lang.String xml,
javax.servlet.ServletContext context)
Performs XML conversion from the input format to the output format by simply adding a
coment to the end of the input XML record.
|
java.lang.String |
getFromFormat()
This converter can convert from any format.
|
java.lang.String |
getToFormat()
This converter can convert to any format.
|
long |
lastModified(javax.servlet.ServletContext context)
Gets the time this converter code was last modified.
|
public java.lang.String getFromFormat()
getFromFormat
in interface XMLFormatConverter
public java.lang.String getToFormat()
getToFormat
in interface XMLFormatConverter
public long lastModified(javax.servlet.ServletContext context)
lastModified
in interface XMLFormatConverter
context
- The context in which this is running.public java.lang.String convertXML(java.lang.String xml, javax.servlet.ServletContext context)
convertXML
in interface XMLFormatConverter
xml
- XML input in the 'from' format.context
- The context in which this is running.