public class BadgerContext extends JAXBContext
JAXB_CONTEXT_FACTORY| Constructor and Description |
|---|
BadgerContext(Class... clazz) |
BadgerContext(String contextPath) |
| Modifier and Type | Method and Description |
|---|---|
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()
Validator has been made optional and deprecated in JAXB 2.0. |
createBinder, createBinder, createJAXBIntrospector, generateSchema, newInstance, newInstance, newInstance, newInstance, newInstancepublic BadgerContext(Class... clazz)
public BadgerContext(String contextPath)
public Unmarshaller createUnmarshaller() throws JAXBException
JAXBContextUnmarshaller object that can be used to convert XML
data into a java content tree.createUnmarshaller in class JAXBContextUnmarshaller objectJAXBException - if an error was encountered while creating the
Unmarshaller objectpublic Marshaller createMarshaller() throws JAXBException
JAXBContextMarshaller object that can be used to convert a
java content tree into XML data.createMarshaller in class JAXBContextMarshaller objectJAXBException - if an error was encountered while creating the
Marshaller objectpublic 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 JAXBContextValidator objectJAXBException - if an error was encountered while creating the
Validator objectCopyright © 2019 JBoss by Red Hat. All rights reserved.