public interface Marshaller
marshal method accepts a
java.lang.Object as its
first parameter, most
Marshaller implementations cannot handle arbitrary
Objects. Instead, a object class must be registered with the marshaller,
or have a common base class.
|Modifier and Type||Method and Description|
Marshal the object graph with the given root into the provided
Indicate whether this marshaller can marshal instances of the supplied type.
boolean supports(Class<?> clazz)
clazz- the class that this marshaller is being asked if it can marshal
trueif this marshaller can indeed marshal instances of the supplied class;
void marshal(Object graph, Result result) throws IOException, XmlMappingException