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, newInstance
public BadgerContext(Class... clazz)
public BadgerContext(String contextPath)
public Unmarshaller createUnmarshaller() throws JAXBException
JAXBContext
Unmarshaller
object that can be used to convert XML
data into a java content tree.createUnmarshaller
in class JAXBContext
Unmarshaller
objectJAXBException
- if an error was encountered while creating the
Unmarshaller
objectpublic Marshaller createMarshaller() throws JAXBException
JAXBContext
Marshaller
object that can be used to convert a
java content tree into XML data.createMarshaller
in class JAXBContext
Marshaller
objectJAXBException
- if an error was encountered while creating the
Marshaller
objectpublic Validator createValidator() throws JAXBException
JAXBContext
Validator
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 JAXBContext
Validator
objectJAXBException
- if an error was encountered while creating the
Validator
objectCopyright © 2021 JBoss by Red Hat. All rights reserved.