| org.springframework.oxm.Marshaller
All known Subclasses: org.springframework.oxm.AbstractMarshaller, org.springframework.oxm.jaxb.AbstractJaxbMarshaller,
Marshaller | public interface Marshaller (Code) | | Defines the contract for Object XML Mapping Marshallers. Implementations of this interface can serialize a given
Object to an XML Stream.
Although the marshal method accepts a java.lang.Object as its first parameter, most
Marshaller implementations cannot handle arbitrary java.lang.Object . Instead, a object
class must be registered with the marshaller, or have a common base class.
author: Arjen Poutsma since: 1.0.0 |
Method Summary | |
void | marshal(Object graph, Result result) Marshals the object graph with the given root into the provided
Result . | boolean | supports(Class clazz) Indicates whether this marshaller can marshal instances of the supplied type. |
supports | boolean supports(Class clazz)(Code) | | Indicates whether this marshaller can marshal instances of the supplied type.
Parameters: clazz - the class that this marshaller is being asked if it can marshal true if this marshaller can indeed marshal instances of the supplied class;false otherwise |
|
|