| Package | Description |
|---|---|
| javax.xml.bind |
Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
|
| javax.xml.bind.helpers |
JAXB Provider Use Only: Provides partial default implementations for some of the
javax.xml.bind interfaces.
|
| javax.xml.bind.util |
Useful client utility classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MarshalException
This exception indicates that an error has occurred while performing a marshal operation that the provider is unable to recover from.
|
class |
PropertyException
This exception indicates that an error was encountered while getting or setting a property.
|
class |
UnmarshalException
This exception indicates that an error has occurred while performing an unmarshal operation that prevents the JAXB Provider from completing the operation.
|
class |
ValidationException
This exception indicates that an error has occurred while performing a validate operation.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Marshaller |
JAXBContext.createMarshaller()
Create a
Marshaller object that can be used to convert a java content tree into XML data.
|
abstract Unmarshaller |
JAXBContext.createUnmarshaller()
Create an
Unmarshaller object that can be used to convert XML data into a java content tree.
|
abstract Validator |
JAXBContext.createValidator()
Deprecated.
since JAXB2.0
|
ValidationEventHandler |
Validator.getEventHandler()
Deprecated.
since JAXB2.0
|
abstract ValidationEventHandler |
Binder.getEventHandler()
Return the current event handler or the default event handler if one hasn't been set.
|
ValidationEventHandler |
Marshaller.getEventHandler()
Return the current event handler or the default event handler if one hasn't been set.
|
ValidationEventHandler |
Unmarshaller.getEventHandler()
Return the current event handler or the default event handler if one hasn't been set.
|
Node |
Marshaller.getNode(Object
Get a DOM tree view of the content tree(Optional).
|
Object |
UnmarshallerHandler.getResult()
Obtains the unmarshalled result.
|
boolean |
Unmarshaller.isValidating()
Deprecated.
since JAXB2.0, please see
Unmarshaller
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into SAX2 events.
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into a file.
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into a DOM tree.
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into an output stream.
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into the specified
javax.xml.transform.Result.
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into a Writer.
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into a
XMLEventWriter.
|
abstract void |
Binder.marshal(Object
Marshal a JAXB object tree to a new XML document.
|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into a
XMLStreamWriter.
|
static JAXBContext |
JAXBContext.newInstance(Class
Obtain a new instance of a
JAXBContext class.
|
static JAXBContext |
JAXBContext.newInstance(Class
Obtain a new instance of a
JAXBContext class.
|
static JAXBContext |
JAXBContext.newInstance(String
Obtain a new instance of a
JAXBContext class.
|
static JAXBContext |
JAXBContext.newInstance(String
Obtain a new instance of a
JAXBContext class.
|
static JAXBContext |
JAXBContext.newInstance(String
Obtain a new instance of a
JAXBContext class.
|
void |
Validator.setEventHandler(ValidationEventHandler
Deprecated.
since JAXB2.0
|
abstract void |
Binder.setEventHandler(ValidationEventHandler
Allow an application to register a
ValidationEventHandler.
|
void |
Marshaller.setEventHandler(ValidationEventHandler
Allow an application to register a validation event handler.
|
void |
Unmarshaller.setEventHandler(ValidationEventHandler
Allow an application to register a
ValidationEventHandler.
|
void |
Unmarshaller.setValidating(boolean validating)
Deprecated.
since JAXB2.0, please see
Unmarshaller
|
Object |
Unmarshaller.unmarshal(File
Unmarshal XML data from the specified file and return the resulting content tree.
|
Object |
Unmarshaller.unmarshal(InputSource
Unmarshal XML data from the specified SAX InputSource and return the resulting content tree.
|
Object |
Unmarshaller.unmarshal(InputStream
Unmarshal XML data from the specified InputStream and return the resulting content tree.
|
Object |
Unmarshaller.unmarshal(Node
Unmarshal global XML data from the specified DOM tree and return the resulting content tree.
|
<T> JAXBElement |
Unmarshaller.unmarshal(Node
Unmarshal XML data by JAXB mapped
declaredType and return the resulting content tree.
|
Object |
Unmarshaller.unmarshal(Reader
Unmarshal XML data from the specified Reader and return the resulting content tree.
|
Object |
Unmarshaller.unmarshal(Source
Unmarshal XML data from the specified XML Source and return the resulting content tree.
|
<T> JAXBElement |
Unmarshaller.unmarshal(Source
Unmarshal XML data from the specified XML Source by
declaredType and return the resulting content tree.
|
Object |
Unmarshaller.unmarshal(URL
Unmarshal XML data from the specified URL and return the resulting content tree.
|
Object |
Unmarshaller.unmarshal(XMLEventReader
Unmarshal XML data from the specified pull parser and return the resulting content tree.
|
<T> JAXBElement |
Unmarshaller.unmarshal(XMLEventReader
Unmarshal root element to JAXB mapped
declaredType and return the resulting content tree.
|
abstract Object |
Binder.unmarshal(XmlNode xmlNode)
Unmarshal XML infoset view to a JAXB object tree.
|
abstract <T> JAXBElement |
Binder.unmarshal(XmlNode xmlNode, Class
Unmarshal XML root element by provided
declaredType to a JAXB object tree.
|
Object |
Unmarshaller.unmarshal(XMLStreamReader
Unmarshal XML data from the specified pull parser and return the resulting content tree.
|
<T> JAXBElement |
Unmarshaller.unmarshal(XMLStreamReader
Unmarshal root element to JAXB mapped
declaredType and return the resulting content tree.
|
abstract Object |
Binder.updateJAXB(XmlNode xmlNode)
Takes an XML node and updates its associated JAXB object and its descendants.
|
abstract XmlNode |
Binder.updateXML(Object
Takes an JAXB object and updates its associated XML node and its descendants.
|
abstract XmlNode |
Binder.updateXML(Object
Changes in JAXB object tree are updated in its associated XML parse tree.
|
boolean |
Validator.validate(Object
Deprecated.
since JAXB2.0
|
boolean |
Validator.validateRoot(Object
Deprecated.
since JAXB2.0
|
| Modifier and Type | Method and Description |
|---|---|
ValidationEventHandler |
AbstractMarshallerImpl.getEventHandler()
|
ValidationEventHandler |
AbstractUnmarshallerImpl.getEventHandler()
Return the current event handler or the default event handler if one hasn't been set.
|
Node |
AbstractMarshallerImpl.getNode(Object
By default, the getNode method is unsupported and throw an
UnsupportedOperationException.
|
protected XMLReader |
AbstractUnmarshallerImpl.getXMLReader()
Obtains a configured XMLReader.
|
boolean |
AbstractUnmarshallerImpl.isValidating()
Indicates whether or not the Unmarshaller is configured to validate during unmarshal operations.
|
void |
AbstractMarshallerImpl.marshal(Object
|
void |
AbstractMarshallerImpl.marshal(Object
|
void |
AbstractMarshallerImpl.marshal(Object
|
void |
AbstractMarshallerImpl.marshal(Object
|
void |
AbstractMarshallerImpl.marshal(Object
|
void |
AbstractMarshallerImpl.marshal(Object
|
void |
AbstractMarshallerImpl.marshal(Object
|
void |
AbstractMarshallerImpl.setEventHandler(ValidationEventHandler
|
void |
AbstractUnmarshallerImpl.setEventHandler(ValidationEventHandler
Allow an application to register a validation event handler.
|
void |
AbstractUnmarshallerImpl.setValidating(boolean validating)
Specifies whether or not the Unmarshaller should validate during unmarshal operations.
|
Object |
AbstractUnmarshallerImpl.unmarshal(File
|
Object |
AbstractUnmarshallerImpl.unmarshal(InputSource
|
Object |
AbstractUnmarshallerImpl.unmarshal(InputStream
|
<T> JAXBElement |
AbstractUnmarshallerImpl.unmarshal(Node
|
Object |
AbstractUnmarshallerImpl.unmarshal(Reader
|
Object |
AbstractUnmarshallerImpl.unmarshal(Source
|
<T> JAXBElement |
AbstractUnmarshallerImpl.unmarshal(Source
|
Object |
AbstractUnmarshallerImpl.unmarshal(URL
|
Object |
AbstractUnmarshallerImpl.unmarshal(XMLEventReader
|
<T> JAXBElement |
AbstractUnmarshallerImpl.unmarshal(XMLEventReader
|
protected abstract Object |
AbstractUnmarshallerImpl.unmarshal(XMLReader
Unmarshals an object by using the specified XMLReader and the InputSource.
|
Object |
AbstractUnmarshallerImpl.unmarshal(XMLStreamReader
|
<T> JAXBElement |
AbstractUnmarshallerImpl.unmarshal(XMLStreamReader
|
| Modifier and Type | Method and Description |
|---|---|
Object |
JAXBResult.getResult()
Gets the unmarshalled object created by the transformation.
|
| Constructor and Description | |
|---|---|
JAXBResult(JAXBContext
Creates a new instance that uses the specified JAXBContext to unmarshal.
|
|
JAXBResult(Unmarshaller
Creates a new instance that uses the specified Unmarshaller to unmarshal an object.
|
|
JAXBSource(JAXBContext
Creates a new
Source for the given content object.
|
|
JAXBSource(Marshaller
Creates a new
Source for the given content object.
|