JAX-B it is an acronym of Java API for XML Binding. It is a convenient framework to process XML documents.
JAX-B provides a mechanism to marshal java objects into XML document and un-marshals XML document in to Java Objects.
JAX-B mainly used for three operations.which are listed below
New features in JAXB 2.0 over JAXB 1.0
JAX-B provides a mechanism to marshal java objects into XML document and un-marshals XML document in to Java Objects.
JAX-B mainly used for three operations.which are listed below
- Marshalling a tree of objects into an XML document
- Unmarshalling an XML document into a tree of objects.
- It includes validation of the XML against the schema
- It used to generate the classes of the objects
javascript:void(0);
- Validation of object trees against the schema used to generate their classes
- some constraints are enforced while working with the objects
- others are only enforced when validation is requested
The following diagram describes JAX-B architecture.
New features in JAXB 2.0 over JAXB 1.0
- Parameterized types:JAX-B supports parameterized types, The advantage of parameterized types is compile time type checking.
References

0 comments :
Post a Comment