public class JAXBContextWrapper
extends javax.xml.bind.JAXBContext
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
mapper
An optional namespace mapper that is used to apply prefixes to elements with a given namespace.
|
private static java.lang.reflect.Constructor |
mapperConstructor |
private static java.lang.String |
NAMESPACE_PREFIX_MAPPER |
private javax.xml.validation.Schema |
schema
The optional Schema that is bound to this context
|
private javax.xml.bind.JAXBContext |
wrappedContext |
Constructor and Description |
---|
JAXBContextWrapper(java.lang.Class<?>[] classes,
java.util.Map<java.lang.String,java.lang.Object> properties,
JAXBConfig config)
Create a new JAXBContextWrapper.
|
JAXBContextWrapper(JAXBConfig config,
java.lang.Class<?>... classes)
Create a new JAXBContextWrapper.
|
JAXBContextWrapper(javax.xml.bind.JAXBContext wrappedContext,
JAXBConfig config) |
JAXBContextWrapper(java.lang.String contextPath,
JAXBConfig config)
Create a new JAXBContextWrapper.
|
Modifier and Type | Method and Description |
---|---|
javax.xml.bind.Binder<org.w3c.dom.Node> |
createBinder() |
<T> javax.xml.bind.Binder<T> |
createBinder(java.lang.Class<T> domType) |
javax.xml.bind.JAXBIntrospector |
createJAXBIntrospector() |
javax.xml.bind.Marshaller |
createMarshaller() |
javax.xml.bind.Unmarshaller |
createUnmarshaller() |
javax.xml.bind.Validator |
createValidator()
Deprecated.
See javax.xml.bind.JAXBContext#createValidator().
|
void |
generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver) |
javax.xml.validation.Schema |
getSchema()
Get the schema.
|
private void |
processConfig(JAXBConfig config)
FIXME Comment this
|
void |
setSchema(javax.xml.validation.Schema schema)
Set the schema.
|
private static final java.lang.String NAMESPACE_PREFIX_MAPPER
private static java.lang.reflect.Constructor mapperConstructor
private javax.xml.bind.JAXBContext wrappedContext
private java.lang.Object mapper
private javax.xml.validation.Schema schema
public JAXBContextWrapper(javax.xml.bind.JAXBContext wrappedContext, JAXBConfig config) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public JAXBContextWrapper(java.lang.Class<?>[] classes, java.util.Map<java.lang.String,java.lang.Object> properties, JAXBConfig config) throws javax.xml.bind.JAXBException
classes
- properties
- config
- javax.xml.bind.JAXBException
public JAXBContextWrapper(java.lang.String contextPath, JAXBConfig config) throws javax.xml.bind.JAXBException
contextPath
- config
- javax.xml.bind.JAXBException
public JAXBContextWrapper(JAXBConfig config, java.lang.Class<?>... classes) throws javax.xml.bind.JAXBException
classes
- config
- javax.xml.bind.JAXBException
private void processConfig(JAXBConfig config) throws javax.xml.bind.JAXBException
config
- javax.xml.bind.JAXBException
public javax.xml.validation.Schema getSchema()
public void setSchema(javax.xml.validation.Schema schema)
schema
- The schema to set.public javax.xml.bind.Binder<org.w3c.dom.Node> createBinder()
createBinder
in class javax.xml.bind.JAXBContext
JAXBContext.createBinder()
public <T> javax.xml.bind.Binder<T> createBinder(java.lang.Class<T> domType)
createBinder
in class javax.xml.bind.JAXBContext
T
- domType
- JAXBContext.createBinder(java.lang.Class)
public javax.xml.bind.JAXBIntrospector createJAXBIntrospector()
createJAXBIntrospector
in class javax.xml.bind.JAXBContext
JAXBContext.createJAXBIntrospector()
public javax.xml.bind.Marshaller createMarshaller() throws javax.xml.bind.JAXBException
createMarshaller
in class javax.xml.bind.JAXBContext
javax.xml.bind.JAXBException
JAXBContext.createMarshaller()
public javax.xml.bind.Unmarshaller createUnmarshaller() throws javax.xml.bind.JAXBException
createUnmarshaller
in class javax.xml.bind.JAXBContext
javax.xml.bind.JAXBException
JAXBContext.createUnmarshaller()
public javax.xml.bind.Validator createValidator() throws javax.xml.bind.JAXBException
createValidator
in class javax.xml.bind.JAXBContext
javax.xml.bind.JAXBException
JAXBContext.createValidator()
public void generateSchema(javax.xml.bind.SchemaOutputResolver outputResolver) throws java.io.IOException
generateSchema
in class javax.xml.bind.JAXBContext
outputResolver
- java.io.IOException
JAXBContext.generateSchema(javax.xml.bind.SchemaOutputResolver)