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() |
<T> Binder<T> |
createBinder(Class<T> domType) |
JAXBIntrospector |
createJAXBIntrospector() |
Marshaller |
createMarshaller() |
Unmarshaller |
createUnmarshaller() |
Validator |
createValidator()
Deprecated.
See javax.xml.bind.JAXBContext#createValidator().
|
void |
generateSchema(SchemaOutputResolver outputResolver) |
Schema |
getSchema()
Get the schema.
|
void |
setSchema(Schema schema)
Set the schema.
|
newInstance, newInstance, newInstance, newInstance, newInstance
public JAXBContextWrapper(JAXBContext wrappedContext, JAXBConfig config) throws JAXBException
JAXBException
public 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()
createBinder
in class JAXBContext
Binder
JAXBContext.createBinder()
public <T> Binder<T> createBinder(Class<T> domType)
createBinder
in class JAXBContext
T
- typedomType
- dom classBinder
JAXBContext.createBinder(java.lang.Class)
public JAXBIntrospector createJAXBIntrospector()
createJAXBIntrospector
in class JAXBContext
JAXBIntrospector
JAXBContext.createJAXBIntrospector()
public Marshaller createMarshaller() throws JAXBException
createMarshaller
in class JAXBContext
JAXBException
- jaxb exceptionJAXBContext.createMarshaller()
public Unmarshaller createUnmarshaller() throws JAXBException
createUnmarshaller
in class JAXBContext
JAXBException
- jaxb exceptionJAXBContext.createUnmarshaller()
public Validator createValidator() throws JAXBException
createValidator
in class JAXBContext
JAXBException
- jaxb exceptionJAXBContext.createValidator()
public void generateSchema(SchemaOutputResolver outputResolver) throws IOException
generateSchema
in class JAXBContext
outputResolver
- xml schema resolverIOException
- if I/O error occurredJAXBContext.generateSchema(javax.xml.bind.SchemaOutputResolver)
Copyright © 2020 JBoss by Red Hat. All rights reserved.