diff --git a/spring-framework-reference/images/oxm-exceptions.png b/spring-framework-reference/images/oxm-exceptions.png new file mode 100644 index 00000000000..9503d600793 Binary files /dev/null and b/spring-framework-reference/images/oxm-exceptions.png differ diff --git a/spring-framework-reference/images/oxm-exceptions.svg b/spring-framework-reference/images/oxm-exceptions.svg new file mode 100644 index 00000000000..e33c67ae638 --- /dev/null +++ b/spring-framework-reference/images/oxm-exceptions.svg @@ -0,0 +1,48 @@ + + + + + +G +c1 + +XmlMappingException + +c2 + +GenericMarshallingFailureException + +c1->c2 + + + +c5 + +ValidationFailureException + +c1->c5 + + + +c3 + +MarshallingFailureException + +c2->c3 + + + +c4 + +UnmarshallingFailureException + +c2->c4 + + + + + diff --git a/spring-framework-reference/src/oxm.xml b/spring-framework-reference/src/oxm.xml index 3f1b7af7de5..325fc285581 100644 --- a/spring-framework-reference/src/oxm.xml +++ b/spring-framework-reference/src/oxm.xml @@ -78,21 +78,21 @@ public interface Marshaller { - javax.xml.transform.Result implementation + Result implementation Wraps XML representation - javax.xml.transform.dom.DOMResult + DOMResult org.w3c.dom.Node - javax.xml.transform.sax.SAXResult + SAXResult org.xml.sax.ContentHandler - javax.xml.transform.stream.StreamResult + StreamResult java.io.File, java.io.OutputStream, or @@ -106,9 +106,9 @@ public interface Marshaller { Although the marshal method accepts a plain object as its first parameter, most Marshaller implementations cannot handle arbitrary - objects. Instead, an object class must be mapped in a mapping file, registered with the - marshaller, or have a common base class. Refer to the further sections in this chapter to - determine how your O/X technology of choice manages this. + objects. Instead, an object class must be mapped in a mapping file, marked with an annotation, + registered with the marshaller, or have a common base class. Refer to the further sections + in this chapter to determine how your O/X technology of choice manages this. @@ -135,24 +135,24 @@ public interface Unmarshaller { - javax.xml.transform.Source implementation + Source implementation Wraps XML representation - javax.xml.transform.dom.DOMSource + DOMSource org.w3c.dom.Node - javax.xml.transform.sax.SAXSource + SAXSource org.xml.sax.InputSource, and org.xml.sax.XMLReader - javax.xml.transform.stream.StreamSource + StreamSource java.io.File, java.io.InputStream, or @@ -185,13 +185,8 @@ public interface Unmarshaller { The O/X Mapping exception hierarchy is shown in the following figure: - - - - - + + diff --git a/spring-framework-reference/src/spring-framework-reference.xml b/spring-framework-reference/src/spring-framework-reference.xml index 418dbbf58fc..b76f93f2603 100644 --- a/spring-framework-reference/src/spring-framework-reference.xml +++ b/spring-framework-reference/src/spring-framework-reference.xml @@ -95,12 +95,16 @@ Arjen Poutsma + + Tareq + Abed Rabbo + 2004-2009 Rod Johnson, Juergen Hoeller, Alef Arendsen, Colin Sampaleanu, Rob Harrop, Thomas Risberg, Darren Davison, Dmitriy Kopylenko, Mark Pollack, Thierry Templier, Erwin Vervaet, Portia Tung, Ben Hale, Adrian Colyer, John Lewis, - Costin Leau, Mark Fisher, Sam Brannen, Ramnivas Laddad, Arjen Poutsma + Costin Leau, Mark Fisher, Sam Brannen, Ramnivas Laddad, Arjen Poutsma, Tareq Abbed Rabbo