JiBX
JiBX | |
---|---|
Basic data
|
|
Maintainer | Dennis Sosnoski |
Current version | 1.2.6 (January 1, 2015) |
operating system | platform independent |
programming language | Java |
category | XML data binding framework |
License | BSD license |
jibx.sourceforge.net |
JiBX is a free XML data binding framework for Java . This makes it possible to work with XML documents without the programmer having to use interfaces for processing XML such as SAX or DOM . JiBX allows any class structure to be linked to any XML document. This distinguishes JiBX from other Java XML Binding Frameworks such as JAXB or XMLBeans , which generate the classes to be bound from the XML schemas of the XML documents, or Apache Commons Betwixt , which generates the XML documents from the classes to be bound. It is therefore the only Java framework that enables the Java classes to be bound to be completely independent of the XML documents.
JiBX is designed to perform this transformation as efficiently as possible, which is why JiBX is also one of the fastest XML binding frameworks for Java.
functionality
JiBX is based on what is known as mapped data binding , which means that any Java classes can be mapped to XML documents using a binding definition . This makes it possible to implement an architecture that decouples the business objects (Java classes) from the communication or persistence interfaces (XML documents). It is thus possible to develop the Java classes independently of the XML documents to be bound.
The conversion itself takes place via bytecode manipulation of the classes to be linked . It is therefore not necessary to create your own conversion classes. This has a positive effect on both the performance and the memory consumption of the framework.
JiBX provides the following tools for this:
- bindgen - manipulation of the bytecode of the classes to be bound and generation of the XML schema for these classes
- codegen - Generation of source code and manipulated bytecode for classes to be linked from an existing XML schema
- jibx2wsdl - Generation of JiBX binding, WSDL , and XML schema from classes
- starter - Use of binding definitions for binding classes to XML Schemas
Alternatives
- Java Architecture for XML Binding (JAXB)
- Apache XMLBeans
- Castor (framework)
- CookXML
- XStream
- Apache Commons Betwixt
literature
- Dennis Sosnoski: JiBX 1.2 . Part 1: Java code to XML schema. Ed .: IBM Developer Works. March 3, 2009, p. 11 ( ibm.com [accessed December 26, 2009]).
- Dennis Sosnoski: JiBX 1.2 . Part 2: XML schema to Java code. Ed .: IBM Developer Works. March 3, 2009, p. 14 ( ibm.com [accessed December 26, 2009]).
Web links
- JiBX website
- BindMark Performance Comparison (Dead Link)
- JiBX presentation by Dennis Sosnoski (Blocked)