GenericMarshaller interface for JAXB 2.2.
The typical usage will be to set either the "contextPath" or the "classesToBeBound" property on this bean, possibly customize the marshaller and unmarshaller by setting properties, schemas, adapters, and listeners, and to refer to it.
setContextPath, setClassesToBeBound, setJaxbContextProperties, setMarshallerProperties, setUnmarshallerProperties, setSchema, setSchemas, setMarshallerListener, setUnmarshallerListener, setAdapters
| Modifier and Type | Class and Description |
|---|---|
| private static class | Jaxb2Marshaller.
DataSource that wraps around a byte array. |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private XmlAdapter | |
| private ClassLoader | |
| private boolean | |
| private static final String | |
| private Class | |
| private String | |
| private volatile JAXBContext | |
| private final Object | |
| private Map | |
| private boolean | |
| protected final Log | logger
Logger available to subclasses. |
| private Class | |
| private Marshaller. | |
| private Map | |
| private boolean | |
| private static final EntityResolver | |
| private String[] | |
| private boolean | |
| private Schema | |
| private String | |
| private LSResourceResolver | |
| private Resource[] | |
| private boolean | |
| private boolean | |
| private Unmarshaller. | |
| private Map | |
| private ValidationEventHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| protected XmlMappingException | Returns: the correspondingXmlMappingExceptionJAXBException that occurredConvert the given |
| private JAXBContext | |
| private JAXBContext | |
| private JAXBContext | |
| public Marshaller | |
| public Unmarshaller | |
| public Class | getClassesToBeBound()
Return the list of Java classes to be recognized by a newly created JAXBContext. |
| public String | |
| public JAXBContext | |
| public String[] | |
| protected void | initJaxbMarshaller(Marshaller marshaller)
Template method that can be overridden by concrete JAXB marshallers for custom initialization behavior. |
| protected void | initJaxbUnmarshaller(Unmarshaller unmarshaller)
Template method that can be overridden by concrete JAXB marshallers for custom initialization behavior. |
| private boolean | |
| public boolean | |
| private boolean | |
| public boolean | |
| private Schema | |
| public void | marshal(Object
the root of the object graph to marshal graph, Result the result to marshal to result)Implements org. Marshal the object graph with the given root into the provided |
| public void | marshal(Object
the root of the object graph to marshal graph, Result the result to marshal to result, MimeContainer the MIME container to write extracted binary content to mimeContainer)Implements org. Marshals the object graph with the given root into the provided |
| private void | |
| private Source | |
| public void | setAdapters(XmlAdapter<?, ?>... adapters)
Specify the |
| public void | setBeanClassLoader(ClassLoader
the owning class loader classLoader)Implements org. Callback that supplies the bean |
| public void | setCheckForXmlRootElement(boolean checkForXmlRootElement)
Specify whether the |
| public void | setClassesToBeBound(Class<?>... classesToBeBound)
Set the list of Java classes to be recognized by a newly created JAXBContext. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setMarshallerListener(Marshaller.
Specify the |
| public void | |
| public void | |
| public void | setPackagesToScan(String... packagesToScan)
Set the packages to search for classes with JAXB2 annotations in the classpath. |
| public void | setProcessExternalEntities(boolean processExternalEntities)
Indicate whether external XML entities are processed when unmarshalling. |
| public void | |
| public void | |
| public void | setSchemaResourceResolver(LSResourceResolver schemaResourceResolver)
Set the resource resolver, as used to load the schema resources. |
| public void | |
| public void | |
| public void | setSupportJaxbElementClass(boolean supportJaxbElementClass)
Specify whether the |
| public void | setUnmarshallerListener(Unmarshaller.
Set the |
| public void | setUnmarshallerProperties(Map<String, ?>
the properties properties)Set the JAXB |
| public void | setValidationEventHandler(ValidationEventHandler validationEventHandler)
Set the JAXB validation event handler. |
| public boolean | supports(Class<?>
the class that this marshaller is being asked if it can marshal clazz)Implements org. Indicate whether this marshaller can marshal instances of the supplied type. |
| public boolean | supports(Type
the type that this marshaller is being asked if it can marshal genericType)Implements org. Indicates whether this marshaller can marshal instances of the supplied generic type. |
| private boolean | |
| public Object | unmarshal(Source
the source to marshal from source)Implements org. Unmarshal the given |
| public Object | unmarshal(Source
the source to marshal from source, MimeContainer the MIME container to read extracted binary content from mimeContainer)Implements org. Unmarshals the given provided |
| protected Object |