Java Architecture for XML Binding
Java Architecture for XML Binding
| Développé par | Oracle |
|---|---|
| Première version | |
| Dernière version | 2.2.7 (24. April 2013) |
| Dépôt | github.com/eclipse-ee4j/jaxb-ri |
| Écrit en | Java |
| Environnement | Multiplate-forme |
| Formats lus | JAXB Bindings (d) |
| Type | API XML |
| Licence | CDDL v1.0 and GPL v2 |
| Site web | jaxb.java.net |
Java Architecture for XML Binding (JAXB) est l'API Java d'Oracle (anciennement Sun Microsystems) permettant de créer des classes Java à partir de schémas (.XSD) et inversement.
Elle facilite l'utilisation du XML en Java en compilant un schéma XML dans une ou plusieurs classes.
Mappage par défaut
| XML Schema Type | Java Data Type[1] |
|---|---|
xsd:string
|
java.lang.String
|
xsd:integer
|
java.math.BigInteger
|
xsd:positiveInteger
|
java.math.BigInteger
|
xsd:int
|
int
|
xsd:long
|
long
|
xsd:short
|
short
|
xsd:decimal
|
java.math.BigDecimal
|
xsd:float
|
float
|
xsd:double
|
double
|
xsd:boolean
|
boolean
|
xsd:byte
|
byte
|
xsd:QName
|
javax.xml.namespace.QName
|
xsd:dateTime
|
javax.xml.datatype.XMLGregorianCalendar
|
xsd:base64Binary
|
byte[]
|
xsd:hexBinary
|
byte[]
|
xsd:unsignedInt
|
long
|
xsd:unsignedShort
|
int
|
xsd:unsignedByte
|
short
|
xsd:unsignedLong
|
java.math.BigDecimal
|
xsd:time
|
javax.xml.datatype.XMLGregorianCalendar
|
xsd:date
|
javax.xml.datatype.XMLGregorianCalendar
|
xsd:g
|
javax.xml.datatype.XMLGregorianCalendar
|
xsd:anySimpleType[2]
|
java.lang.Object
|
xsd:anySimpleType[3]
|
java.lang.String
|
xsd:duration
|
javax.xml.datatype.Duration
|
xsd:NOTATION
|
javax.xml.namespace.QName
|
Notes et références
- ↑ (en) « Using JAXB Data Binding: Standard Data Type Mapping »
- ↑ pour
xsd:elementde ce type. - ↑ signifie «
xsd:attribute» de ce type
Liens externes
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.