javax.xml.bind |
Provides a runtime binding framework for client applications including
unmarshalling, marshalling, and validation capabilities.
JAXBContext is the client-entry point to the runtime binding
framework.
Package Specification
Related Documentation
For overviews, tutorials, examples, guides, and tool documentation,
please see:
|
Java Source File Name | Type | Comment |
Binder.java | Class | Enable synchronization between XML infoset nodes and JAXB objects
representing same XML document.
An instance of this class maintains the association between XML nodes of
an infoset preserving view and a JAXB representation of an XML document. |
ContextFinder.java | Class | This class is package private and therefore is not exposed as part of the
JAXB API. |
DatatypeConverter.java | Class |
The javaType binding declaration can be used to customize the binding of
an XML schema datatype to a Java datatype. |
DatatypeConverterInterface.java | Interface |
The DatatypeConverterInterface is for JAXB provider use only. |
Element.java | Interface | This is an element marker interface.
Under certain circumstances, it is necessary for the binding compiler to
generate derived java content classes that implement this interface. |
JAXBContext.java | Class |
The JAXBContext class provides the client's entry point to the
JAXB API. |
JAXBElement.java | Class | JAXB representation of an Xml Element.
This class represents information about an Xml Element from both the element
declaration within a schema and the element instance value within an xml document
with the following properties
- element's xml tag name
- value represents the element instance's atttribute(s) and content model
- element declaration's declaredType (xs:element @type attribute)
- scope of element declaration
- boolean nil property.
|
JAXBException.java | Class | This is the root exception class for all JAXB exceptions. |
JAXBIntrospector.java | Class | Provide access to JAXB xml binding data for a JAXB object. |
MarshalException.java | Class | This exception indicates that an error has occurred while performing
a marshal operation that the provider is unable to recover from.
The ValidationEventHandler can cause this exception to be thrown
during the marshal operations. |
Marshaller.java | Interface |
The Marshaller class is responsible for governing the process
of serializing Java content trees back into XML data. |
Messages.java | Class | Formats error messages. |
NotIdentifiableEvent.java | Interface | This event indicates that a problem was encountered resolving an ID/IDREF. |
ParseConversionEvent.java | Interface | This event indicates that a problem was encountered while converting a
string from the XML data into a value of the target Java data type. |
PrintConversionEvent.java | Interface | This event indicates that a problem was encountered while converting data
from the Java content tree into its lexical representation. |
PropertyException.java | Class | This exception indicates that an error was encountered while getting or
setting a property. |
SchemaOutputResolver.java | Class | Controls where a JAXB implementation puts the generates
schema files. |
TypeConstraintException.java | Class | This exception indicates that a violation of a dynamically checked type
constraint was detected.
This exception can be thrown by the generated setter methods of the schema
derived Java content classes. |
UnmarshalException.java | Class | This exception indicates that an error has occurred while performing
an unmarshal operation that prevents the JAXB Provider from completing
the operation.
The ValidationEventHandler can cause this exception to be thrown
during the unmarshal operations. |
Unmarshaller.java | Interface | The Unmarshaller class governs the process of deserializing XML
data into newly created Java content trees, optionally validating the XML
data as it is unmarshalled. |
UnmarshallerHandler.java | Interface | Unmarshaller implemented as SAX ContentHandler.
Applications can use this interface to use their JAXB provider as a component
in an XML pipeline. |
ValidationEvent.java | Interface | This 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. |
ValidationEventHandler.java | Interface | A basic event handler interface for validation errors.
If an application needs to implement customized event handling, it must
implement this interface and then register it with either the
Unmarshaller.setEventHandler(ValidationEventHandler) Unmarshaller ,
the
Validator.setEventHandler(ValidationEventHandler) Validator , or
the
Marshaller.setEventHandler(ValidationEventHandler) Marshaller . |
ValidationEventLocator.java | Interface | Encapsulate the location of a ValidationEvent.
The ValidationEventLocator indicates where the ValidationEvent
occurred. |
ValidationException.java | Class | This exception indicates that an error has occurred while performing
a validate operation.
The ValidationEventHandler can cause this exception to be thrown
during the validate operations. |
Validator.java | Interface | As of JAXB 2.0, this class is deprecated and optional.
The Validator class is responsible for controlling the validation
of content trees during runtime.
Three Forms of Validation
- Unmarshal-Time Validation
- This form of validation enables a client application to receive
information about validation errors and warnings detected while
unmarshalling XML data into a Java content tree and is completely
orthogonal to the other types of validation.
|