public class InstanceMethodBasedMarshaller extends java.lang.Object implements ObjectMarshaller<XML>
| Constructor and Description |
|---|
InstanceMethodBasedMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
protected groovy.lang.MetaMethod |
getToXMLMethod(java.lang.Object object) |
void |
marshalObject(java.lang.Object object,
XML converter)
Performs the conversion
|
boolean |
supports(java.lang.Object object)
Checks wheter the ObjectMarshaller is able/intended to support the given Object
|
public boolean supports(java.lang.Object object)
ObjectMarshallersupports in interface ObjectMarshaller<XML>object - the object which is about getting convertedtrue if the marshaller can/should perform the marshalling, false otherwisepublic void marshalObject(java.lang.Object object,
XML converter)
throws ConverterException
ObjectMarshallermarshalObject in interface ObjectMarshaller<XML>object - the object which is about getting convertedconverter - the Converter to useConverterException - on failureprotected groovy.lang.MetaMethod getToXMLMethod(java.lang.Object object)