|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Marshaller
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
Objects. Instead, a object class must be registered with the marshaller,
or have a common base class.
Unmarshaller| Method Summary | |
|---|---|
void |
marshal(java.lang.Object graph,
javax.xml.transform.Result result)
Marshals the object graph with the given root into the provided Result. |
boolean |
supports(java.lang.Class<?> clazz)
Indicates whether this marshaller can marshal instances of the supplied type. |
| Method Detail |
|---|
boolean supports(java.lang.Class<?> clazz)
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
void marshal(java.lang.Object graph,
javax.xml.transform.Result result)
throws java.io.IOException,
XmlMappingException
Result.
graph - the root of the object graph to marshalresult - the result to marshal to
java.io.IOException - if an I/O error occurs
XmlMappingException - if the given object cannot be marshalled to the result
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||