Correspondencias entre tipos de datos
En esta tabla puede ver los tipos de datos que se admiten como tipos devueltos de función y tipos de parámetro de función cuando se crean archivos .mff personales que hacen referencia a sus bibliotecas Java, C# y C++ personales. La tabla incluye tanto tipos de datos nativos como no nativos. Si necesita usar tipos de datos no nativos como los tipos date, time y duration de Altova, sus bibliotecas Java y C# personales deberán incluir una referencia a las bibliotecas de Altova. En el caso de C++, deberá importar las bibliotecas de Altova. Para más información sobre cómo generar las bibliotecas de Altova consulte la sección Generador de código.
Tipo XML Schema | Tipo Java | Tipo C# | Tipo C++ |
---|---|---|---|
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 |