public interface ILcdXMLDatatypeMarshaller<T>
ILcdXMLDatatypeUnmarshaller
Modifier and Type | Method and Description |
---|---|
String |
marshal(T aValue,
XMLStreamWriter aWriter,
ILcdXMLDocumentContext aContext)
Converts a Java class instance to a lexical representation of the corresponding XML value.
|
String marshal(T aValue, XMLStreamWriter aWriter, ILcdXMLDocumentContext aContext) throws XMLStreamException
aValue
- the Java object, representing the XML value which should be converted to an XML
lexical representation.aWriter
- the XML stream writer to which the return value be marshalled.aContext
- an ILcdXMLDocumentContext
which can be used to store and retrieve information which is shared
between multiple marshallers. This context is unique per marshalled XML document.IllegalArgumentException
- if the specified object does not represent a value in the
value space of the XML Schema datatype for which this
formatter was written.XMLStreamException
- if an exception occurs while writing the converted
value on the XMLStreamWriter
.