- Javax.xml.bind classes
- Home
- Binder
- DatatypeConverter
- JAXB
- JAXBContext
- JAXBElement
- JAXBElement.GlobalScope
- JAXBIntrospector
- Marshaller.Listener
- SchemaOutputResolver
- Unmarshaller.Listener
- Javax.xml.bind.util classes
- JAXBResult
- JAXBSource
- ValidationEventCollector
- Javax.xml.parsers classes
- DocumentBuilder
- DocumentBuilderFactory
- SAXParser
- SAXParserFactory
- Javax.xml.soap classes
- AttachmentPart
- MessageFactory
- MimeHeader
- MimeHeaders
- SAAJMetaFactory
- SOAPConnection
- SOAPConnectionFactory
- SOAPFactory
- SOAPMessage
- SOAPPart
- Javax.xml.validation classes
- Schema
- SchemaFactory
- TypeInfoProvider
- Validator
- ValidatorHandler
- Javax.xml.xpath classes
- XPathConstants
- XPathFactory
- Java Useful Resources
- Java - Quick Guide
- Java - Useful Resources
Javax.xml.bind.JAXBContext Class
Introduction
The javax.xml.bind.JAXBContext class provides the client's entry point to the JAXB API.This class provides an abstraction for managing the XML/Java binding information necessary to implement the JAXB binding framework operations: unmarshal, marshal and validate.
Class declaration
Following is the declaration for javax.xml.bind.JAXBContext class −
public abstract class JAXBContext extends Object
Field
Following are the fields for javax.xml.bind.JAXBContext class −
static String JAXB_CONTEXT_FACTORY − This is the name of the property that contains the name of the class capable of creating new JAXBContext objects.
Class constructors
S.N. | Constructor & Description |
---|---|
1 | protected JAXBContext()
This is the only constructor. |
Class methods
S.N. | Method & Description |
---|---|
1 | Binder<Node> createBinder()
This method creates a Binder for W3C DOM. |
2 | <T> Binder<T> createBinder(Class<T> domType)
This method creates a Binder object that can be used for associative/in-place unmarshalling/marshalling. |
3 | JAXBIntrospector createJAXBIntrospector()
This method creates a JAXBIntrospector object that can be used to introspect JAXB objects. |
4 | abstract Marshaller createMarshaller()
This method creates a Marshaller object that can be used to convert a java content tree into XML data. |
5 | abstract Unmarshaller createUnmarshaller()
This method creates an Unmarshaller object that can be used to convert XML data into a java content tree. |
6 | void generateSchema(SchemaOutputResolver outputResolver)
This method generates the schema documents for this context. |
7 | static JAXBContext newInstance(Class... classesToBeBound)
This method obtains a new instance of a JAXBContext class. |
8 |
static JAXBContext newInstance(Class[] classesToBeBound, Map<String,?> properties) This method obtain a new instance of a JAXBContext class. |
9 | static JAXBContext newInstance(String contextPath)
This method obtains a new instance of a JAXBContext class. |
10 |
static JAXBContext newInstance(String contextPath, ClassLoader classLoader) This method obtains a new instance of a JAXBContext class. |
11 |
static JAXBContext newInstance(String contextPath, ClassLoader classLoader, Map<String,?> properties) This method obtains a new instance of a JAXBContext class. |
Methods inherited
This class inherits methods from the following classes −
javax.xml.Object