Attachment: Mapping XSD to Java
Built-In XSD Data Types and Their Exact Equivalent in ABAP
| XSD | Java |
|---|---|
|
string |
java.lang.String |
|
boolean |
boolean |
|
float |
float |
|
double |
double |
|
int |
int |
|
short |
short |
|
long |
long |
|
byte |
byte |
|
date |
java.util.Calendar |
|
time |
java.util.Calendar |
Tags Supported for Complex Data Types (in Alphabetical Order)
| XSD | Java |
|---|---|
|
<attribute> (local) |
Attributes of a class (including access methods) |
|
<complexType> (global) |
Class |
|
<complexType> (local) |
Inner class |
|
<element maxOccurs="unbounded"> |
|
|
<element> (local) |
Attribute of an (inner) class (including access methods) |
Limitations for XSD Elements
| XSD Element | Comments |
|---|---|
<extension>and abstract types |
These elements cannot be converted. |
|
substitutionGroup and <element abstract="true"> |
|
|
<redefine> |
|
|
Limitation of value range (
<pattern>, <enumeration>, <maxInclusive>, <maxExclusive>,and so on) |
These tags are not taken into consideration by the proxy runtime; checking these properties is part of the task for validating the schema. |
|
Key relationships, uniqueness (
<key>, <keyref>, <unique>, etc.) |