Class Jaxb2Marshaller

java.lang.Object
org.citrusframework.xml.Jaxb2Marshaller
All Implemented Interfaces:
Marshaller, Unmarshaller

public class Jaxb2Marshaller extends Object implements Marshaller, Unmarshaller
Marshaller uses Jaxb to marshal/unmarshal data.
  • Constructor Details

    • Jaxb2Marshaller

      public Jaxb2Marshaller()
    • Jaxb2Marshaller

      public Jaxb2Marshaller(Class<?>... classesToBeBound)
    • Jaxb2Marshaller

      public Jaxb2Marshaller(String... contextPaths)
    • Jaxb2Marshaller

      public Jaxb2Marshaller(Resource schemaResource, Class<?>... classesToBeBound)
    • Jaxb2Marshaller

      public Jaxb2Marshaller(Resource schemaResource, String... contextPaths)
    • Jaxb2Marshaller

      public Jaxb2Marshaller(Resource[] schemaResources, Class<?>... classesToBeBound)
    • Jaxb2Marshaller

      public Jaxb2Marshaller(Resource[] schemaResources, String... contextPaths)
  • Method Details

    • marshal

      public void marshal(Object graph, Result result) throws jakarta.xml.bind.JAXBException
      Specified by:
      marshal in interface Marshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(Source source) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • setProperty

      public void setProperty(String key, Object value)