Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
JAXBContext is the client-entry point to the runtime binding
Related DocumentationFor overviews, tutorials, examples, guides, and tool documentation, please see:
- The JAXB Website
Interface Summary Interface Description DatatypeConverterInterfaceThe DatatypeConverterInterface is for JAXB provider use only. ElementThis is an element marker interface. JAXBContextFactoryFactory that creates new
Marshallerclass is responsible for governing the process of serializing Java content trees back into XML data.
NotIdentifiableEventThis event indicates that a problem was encountered resolving an ID/IDREF. ParseConversionEventThis event indicates that a problem was encountered while converting a string from the XML data into a value of the target Java data type. PrintConversionEventThis event indicates that a problem was encountered while converting data from the Java content tree into its lexical representation. UnmarshallerThe
Unmarshallerclass governs the process of deserializing XML data into newly created Java content trees, optionally validating the XML data as it is unmarshalled.
UnmarshallerHandlerUnmarshaller implemented as SAX ContentHandler. ValidationEventThis event indicates that a problem was encountered while validating the incoming XML data during an unmarshal operation, while performing on-demand validation of the Java content tree, or while marshalling the Java content tree back to XML data. ValidationEventHandlerA basic event handler interface for validation errors. ValidationEventLocatorEncapsulate the location of a ValidationEvent. Validator Deprecated.since JAXB 2.0
Class Summary Class Description Binder<XmlNode>Enable synchronization between XML infoset nodes and JAXB objects representing same XML document. DatatypeConverterThe javaType binding declaration can be used to customize the binding of an XML schema datatype to a Java datatype. JAXBClass that defines convenience methods for common, simple use of JAXB. JAXBContextThe
JAXBContextclass provides the client's entry point to the JAXB API.
JAXBElement<T>JAXB representation of an Xml Element. JAXBElement.GlobalScopeDesignates global scope for an xml element. JAXBIntrospectorProvide access to JAXB xml binding data for a JAXB object. JAXBPermissionThis class is for JAXB permissions. Marshaller.ListenerRegister an instance of an implementation of this class with a
Marshallerto externally listen for marshal events.
SchemaOutputResolverControls where a JAXB implementation puts the generates schema files. Unmarshaller.ListenerRegister an instance of an implementation of this class with
Unmarshallerto externally listen for unmarshal events.
Exception Summary Exception Description DataBindingExceptionException that represents a failure in a JAXB operation. JAXBExceptionThis is the root exception class for all JAXB exceptions. MarshalExceptionThis exception indicates that an error has occurred while performing a marshal operation that the provider is unable to recover from. PropertyExceptionThis exception indicates that an error was encountered while getting or setting a property. TypeConstraintExceptionThis exception indicates that a violation of a dynamically checked type constraint was detected. UnmarshalExceptionThis exception indicates that an error has occurred while performing an unmarshal operation that prevents the JAXB Provider from completing the operation. ValidationExceptionThis exception indicates that an error has occurred while performing a validate operation.