Class SpringMarshallerAdapter

  • All Implemented Interfaces:
    org.springframework.oxm.Marshaller, org.springframework.oxm.Unmarshaller

    public class SpringMarshallerAdapter
    extends Object
    implements org.springframework.oxm.Marshaller, org.springframework.oxm.Unmarshaller
    Spring Oxm marshaller delegates to given internal marshaller.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • SpringMarshallerAdapter

        public SpringMarshallerAdapter​(Marshaller marshaller)
      • SpringMarshallerAdapter

        public SpringMarshallerAdapter​(Marshaller marshaller,
                                       Unmarshaller unmarshaller)
    • Method Detail

      • supports

        public boolean supports​(Class<?> clazz)
        Specified by:
        supports in interface org.springframework.oxm.Marshaller
        Specified by:
        supports in interface org.springframework.oxm.Unmarshaller
      • unmarshal

        public Object unmarshal​(Source source)
                         throws IOException,
                                org.springframework.oxm.XmlMappingException
        Specified by:
        unmarshal in interface org.springframework.oxm.Unmarshaller
        Throws:
        IOException
        org.springframework.oxm.XmlMappingException
      • marshal

        public void marshal​(Object graph,
                            Result result)
                     throws IOException,
                            org.springframework.oxm.XmlMappingException
        Specified by:
        marshal in interface org.springframework.oxm.Marshaller
        Throws:
        IOException
        org.springframework.oxm.XmlMappingException