Example usage for Java org.springframework.oxm.jaxb Jaxb2Marshaller fields, constructors, methods, implement or subclass
The text is from its open source code.
void | afterPropertiesSet() |
Class>[] | getClassesToBeBound() Return the list of Java classes to be recognized by a newly created JAXBContext. |
JAXBContext | getJaxbContext() Return the JAXBContext used by this marshaller, lazily building it if necessary. |
void | marshal(Object graph, Result result) |
void | setBeanClassLoader(ClassLoader classLoader) |
void | setCheckForXmlRootElement(boolean checkForXmlRootElement) Specify whether the #supports(Class) should check for XmlRootElement @XmlRootElement annotations. |
void | setClassesToBeBound(@Nullable Class>... classesToBeBound) Set the list of Java classes to be recognized by a newly created JAXBContext. |
void | setContextPath(@Nullable String contextPath) Set a JAXB context path. |
void | setContextPaths(String... contextPaths) Set multiple JAXB context paths. |
void | setLazyInit(boolean lazyInit) Set whether to lazily initialize the JAXBContext for this marshaller. |
void | setMappedClass(Class> mappedClass) Specify a JAXB mapped class for partial unmarshalling. |
void | setMarshallerProperties(Map Set the JAXB Marshaller properties. |
void | setPackagesToScan(@Nullable String... packagesToScan) Set the packages to search for classes with JAXB2 annotations in the classpath. |
void | setProcessExternalEntities(boolean processExternalEntities) Indicate whether external XML entities are processed when unmarshalling. |
void | setSchema(Resource schemaResource) Set the schema resource to use for validation. |
void | setSchemas(Resource... schemaResources) Set the schema resources to use for validation. |
void | setValidationEventHandler(ValidationEventHandler validationEventHandler) Set the JAXB validation event handler. |
Object | unmarshal(Source source) |