org.springframework.oxm.Marshaller |
Known Indirect Subclasses |
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
Object
s. Instead, a object class must be registered with the marshaller,
or have a common base class.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Marshals the object graph with the given root into the provided
Result . | |||||||||||
Indicates whether this marshaller can marshal instances of the supplied type.
|
Marshals the object graph with the given root into the provided Result
.
graph | the root of the object graph to marshal |
---|---|
result | the result to marshal to |
IOException | if an I/O error occurs |
---|---|
XmlMappingException | if the given object cannot be marshalled to the result |
Indicates whether this marshaller can marshal instances of the supplied type.
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