public class JAXBContextWrapper extends JAXBContext
JAXB_CONTEXT_FACTORY| Constructor and Description |
|---|
JAXBContextWrapper(Class<?>[] classes,
Map<String,Object> properties,
JAXBConfig config)
Create a new JAXBContextWrapper.
|
JAXBContextWrapper(JAXBConfig config,
Class<?>... classes)
Create a new JAXBContextWrapper.
|
JAXBContextWrapper(JAXBContext wrappedContext,
JAXBConfig config) |
JAXBContextWrapper(String contextPath,
JAXBConfig config)
Create a new JAXBContextWrapper.
|
| Modifier and Type | Method and Description |
|---|---|
Binder<Node> |
createBinder()
Creates a
Binder for W3C DOM. |
<T> Binder<T> |
createBinder(Class<T> domType)
Creates a
Binder object that can be used for
associative/in-place unmarshalling/marshalling. |
JAXBIntrospector |
createJAXBIntrospector()
Creates a
JAXBIntrospector object that can be used to
introspect JAXB objects. |
Marshaller |
createMarshaller()
Create a
Marshaller object that can be used to convert a
java content tree into XML data. |
Unmarshaller |
createUnmarshaller()
Create an
Unmarshaller object that can be used to convert XML
data into a java content tree. |
Validator |
createValidator()
Deprecated.
See javax.xml.bind.JAXBContext#createValidator().
|
void |
generateSchema(SchemaOutputResolver outputResolver)
Generates the schema documents for this context.
|
Schema |
getSchema()
Get the schema.
|
void |
setSchema(Schema schema)
Set the schema.
|
newInstance, newInstance, newInstance, newInstance, newInstancepublic JAXBContextWrapper(JAXBContext wrappedContext, JAXBConfig config) throws JAXBException
JAXBExceptionpublic JAXBContextWrapper(Class<?>[] classes, Map<String,Object> properties, JAXBConfig config) throws JAXBException
classes - classesproperties - properties mapconfig - jaxb configurationJAXBException - jaxb exceptionpublic JAXBContextWrapper(String contextPath, JAXBConfig config) throws JAXBException
contextPath - context pathconfig - jaxb configJAXBException - jaxb exceptionpublic JAXBContextWrapper(JAXBConfig config, Class<?>... classes) throws JAXBException
classes - classesconfig - jaxb configJAXBException - jaxb exceptionpublic Schema getSchema()
public void setSchema(Schema schema)
schema - The schema to set.public Binder<Node> createBinder()
JAXBContextBinder for W3C DOM.createBinder in class JAXBContextBinderJAXBContext.createBinder()public <T> Binder<T> createBinder(Class<T> domType)
JAXBContextBinder object that can be used for
associative/in-place unmarshalling/marshalling.createBinder in class JAXBContextT - typedomType - dom classBinderJAXBContext.createBinder(java.lang.Class)public JAXBIntrospector createJAXBIntrospector()
JAXBContextJAXBIntrospector object that can be used to
introspect JAXB objects.createJAXBIntrospector in class JAXBContextJAXBIntrospectorJAXBContext.createJAXBIntrospector()public Marshaller createMarshaller() throws JAXBException
JAXBContextMarshaller object that can be used to convert a
java content tree into XML data.createMarshaller in class JAXBContextJAXBException - jaxb exceptionJAXBContext.createMarshaller()public Unmarshaller createUnmarshaller() throws JAXBException
JAXBContextUnmarshaller object that can be used to convert XML
data into a java content tree.createUnmarshaller in class JAXBContextJAXBException - jaxb exceptionJAXBContext.createUnmarshaller()public Validator createValidator() throws JAXBException
JAXBContextValidator has been made optional and deprecated in JAXB 2.0. Please
refer to the javadoc for Validator for more detail.
Create a Validator object that can be used to validate a
java content tree against its source schema.
createValidator in class JAXBContextJAXBException - jaxb exceptionJAXBContext.createValidator()public void generateSchema(SchemaOutputResolver outputResolver) throws IOException
JAXBContextgenerateSchema in class JAXBContextoutputResolver - xml schema resolverIOException - if I/O error occurredJAXBContext.generateSchema(javax.xml.bind.SchemaOutputResolver)Copyright © 2019 JBoss by Red Hat. All rights reserved.