javax.xml.bind

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » xml » javax.xml.bind 
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 NameTypeComment
Binder.javaClass 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.javaClass This class is package private and therefore is not exposed as part of the JAXB API.
DatatypeConverter.javaClass

The javaType binding declaration can be used to customize the binding of an XML schema datatype to a Java datatype.

DatatypeConverterInterface.javaInterface

The DatatypeConverterInterface is for JAXB provider use only.

Element.javaInterface 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.javaClass

The JAXBContext class provides the client's entry point to the JAXB API.

JAXBElement.javaClass

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.javaClass This is the root exception class for all JAXB exceptions.
JAXBIntrospector.javaClass Provide access to JAXB xml binding data for a JAXB object.
MarshalException.javaClass 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.javaInterface

The Marshaller class is responsible for governing the process of serializing Java content trees back into XML data.

Messages.javaClass Formats error messages.
NotIdentifiableEvent.javaInterface This event indicates that a problem was encountered resolving an ID/IDREF.
ParseConversionEvent.javaInterface 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.javaInterface This event indicates that a problem was encountered while converting data from the Java content tree into its lexical representation.
PropertyException.javaClass This exception indicates that an error was encountered while getting or setting a property.
SchemaOutputResolver.javaClass Controls where a JAXB implementation puts the generates schema files.
TypeConstraintException.javaClass 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.javaClass 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.javaInterface 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.javaInterface Unmarshaller implemented as SAX ContentHandler.

Applications can use this interface to use their JAXB provider as a component in an XML pipeline.

ValidationEvent.javaInterface 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.javaInterface 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.javaInterface Encapsulate the location of a ValidationEvent.

The ValidationEventLocator indicates where the ValidationEvent occurred.

ValidationException.javaClass 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.javaInterface 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.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.