Class JAXBContextWrapper
java.lang.Object
jakarta.xml.bind.JAXBContext
org.jboss.resteasy.plugins.providers.jaxb.JAXBContextWrapper
A wrapper class around a JAXBContext that enables additional features
to the RESTEasy JAXB-based providers.
- Version:
- $Revision:$
- Author:
- Ryan J. McDonough
-
Field Summary
Fields inherited from class jakarta.xml.bind.JAXBContext
JAXB_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionJAXBContextWrapper(JAXBContext wrappedContext, JAXBConfig config) JAXBContextWrapper(Class<?>[] classes, Map<String, Object> properties, JAXBConfig config) Create a new JAXBContextWrapper.JAXBContextWrapper(String contextPath, JAXBConfig config) Create a new JAXBContextWrapper.JAXBContextWrapper(JAXBConfig config, Class<?>... classes) Create a new JAXBContextWrapper. -
Method Summary
Modifier and TypeMethodDescriptionCreates aBinderfor W3C DOM.<T> Binder<T>createBinder(Class<T> domType) Creates aBinderobject that can be used for associative/in-place unmarshalling/marshalling.Creates aJAXBIntrospectorobject that can be used to introspect Jakarta XML Binding objects.Create aMarshallerobject that can be used to convert a java content tree into XML data.Create anUnmarshallerobject that can be used to convert XML data into a java content tree.jakarta.xml.bind.ValidatorDeprecated.See jakarta.xml.bind.JAXBContext#createValidator().voidgenerateSchema(SchemaOutputResolver outputResolver) Generates the schema documents for this context.Get the schema.voidSet the schema.Methods inherited from class jakarta.xml.bind.JAXBContext
newInstance, newInstance, newInstance, newInstance, newInstance
-
Constructor Details
-
JAXBContextWrapper
- Throws:
JAXBException
-
JAXBContextWrapper
public JAXBContextWrapper(Class<?>[] classes, Map<String, Object> properties, JAXBConfig config) throws JAXBExceptionCreate a new JAXBContextWrapper.- Parameters:
classes- classesproperties- properties mapconfig- jaxb configuration- Throws:
JAXBException- jaxb exception
-
JAXBContextWrapper
Create a new JAXBContextWrapper.- Parameters:
contextPath- context pathconfig- jaxb config- Throws:
JAXBException- jaxb exception
-
JAXBContextWrapper
Create a new JAXBContextWrapper.- Parameters:
classes- classesconfig- jaxb config- Throws:
JAXBException- jaxb exception
-
-
Method Details
-
getSchema
Get the schema.- Returns:
- the schema.
-
setSchema
Set the schema.- Parameters:
schema- The schema to set.
-
createBinder
Description copied from class:JAXBContextCreates aBinderfor W3C DOM.- Overrides:
createBinderin classJAXBContext- Returns:
Binder- See Also:
-
createBinder
Description copied from class:JAXBContextCreates aBinderobject that can be used for associative/in-place unmarshalling/marshalling.- Overrides:
createBinderin classJAXBContext- Type Parameters:
T- type- Parameters:
domType- dom class- Returns:
Binder- See Also:
-
createJAXBIntrospector
Description copied from class:JAXBContextCreates aJAXBIntrospectorobject that can be used to introspect Jakarta XML Binding objects.- Overrides:
createJAXBIntrospectorin classJAXBContext- Returns:
JAXBIntrospector- See Also:
-
createMarshaller
Description copied from class:JAXBContextCreate aMarshallerobject that can be used to convert a java content tree into XML data.- Specified by:
createMarshallerin classJAXBContext- Returns:
- jaxb marshaller
- Throws:
JAXBException- jaxb exception- See Also:
-
createUnmarshaller
Description copied from class:JAXBContextCreate anUnmarshallerobject that can be used to convert XML data into a java content tree.- Specified by:
createUnmarshallerin classJAXBContext- Returns:
- jaxb unmarshaller
- Throws:
JAXBException- jaxb exception- See Also:
-
createValidator
Deprecated.See jakarta.xml.bind.JAXBContext#createValidator().- Returns:
- xml validator
- Throws:
JAXBException- jaxb exception- See Also:
-
jakarta.xml.bind.JAXBContext#createValidator()
-
generateSchema
Description copied from class:JAXBContextGenerates the schema documents for this context.- Overrides:
generateSchemain classJAXBContext- Parameters:
outputResolver- xml schema resolver- Throws:
IOException- if I/O error occurred- See Also:
-