Datentyp-Zuordnung
In der nachstehenden Tabelle sind die Datentypen aufgelistet, die als Funktionsrückgabetypen und Parametertypen unterstützt werden, wenn Sie benutzerdefinierte .mff-Dateien erstellen, die Ihre Java-, C#- und C++-Bibliotheken referenzieren. In der Tabelle sind sowohl native als auch nicht native Datentypen aufgelistet. Wenn Sie Unterstützung für nicht native Typen wie z.B. Altova-Datums-, Uhrzeit- und Zeitdauertypen benötigen, müssen Ihre benutzerdefinierten Java- und C#-Bibliotheken eine Referenz zu Altova-Bibliotheken enthalten. Im Fall von C++ müssen Altova-Bibliotheken immer importiert werden. Informationen zum Generieren der Altova-Bibliotheken finden Sie unter Code Generator.
XML-Schema-Typ | Java-Typ | C#-Typ | C++-Typ |
---|---|---|---|
anyAtomicType | String | string | string_type |
anySimpleType | String | string | string_type |
anyURI | String | string | string_type |
base64Binary | byte[] | byte[] | altova::mapforce::blob |
boolean | boolean | bool | bool |
byte | int | int | int |
date | |||
dateTime | |||
dayTimeDuration | |||
decimal | java.math.BigDecimal | decimal | double |
double | double | double | double |
duration | |||
ENTITIES | String | string | string_type |
ENTITY | String | string | string_type |
float | double | double | double |
gDay | |||
gMonth | |||
gMonthDay | |||
gYear | |||
gYearMonth | |||
hexBinary | byte[] | byte[] | altova::mapforce::blob |
ID | String | string | string_type |
IDREF | String | string | string_type |
IDREFS | String | string | string_type |
int | int | int | int |
integer | java.math.BigInteger | decimal | __int64 |
language | String | string | string_type |
long | long | long | __int64 |
Name | String | string | string_type |
NCName | String | string | string_type |
negativeInteger | java.math.BigInteger | decimal | __int64 |
NMTOKEN | String | string | string_type |
NMTOKENS | String | string | string_type |
nonNegativeInteger | java.math.BigInteger | decimal | unsigned __int64 |
nonPositiveInteger | java.math.BigInteger | decimal | __int64 |
normalizedString | String | string | string_type |
NOTATION | String | string | string_type |
positiveInteger | java.math.BigInteger | decimal | unsigned __int64 |
QName | javax.xml.namespace.QName | Altova.Types.QName | altova::QName |
short | int | int | int |
string | String | string | string_type |
time | |||
token | String | string | string_type |
unsignedByte | long | ulong | unsigned __int64 |
unsignedInt | long | ulong | unsigned __int64 |
unsignedLong | java.math.BigInteger | ulong | unsigned __int64 |
unsignedShort | long | ulong | unsigned __int64 |
untypedAtomic | String | string | string_type |
yearMonthDuration |