## Attribute and Data Type Translation

This topic provides translations between CDS and XDS for attributes and data types. The table, CDS Attributes to OM Syntax Translation, provides the OM syntax for CDS attributes. The table, OM Syntax to CDS Data Types Translation, provides the OM syntax for CDS data types. The table, CDS Data Types to OM Syntax Translation, defines the mapping of the CDS Data Types to OM Syntaxes.

CDS Attributes to OM Syntax Translation

CDS Attribute | OM Syntax
CDS_CTS | OM_S_OCTET_STRING
CDS_UTS | OM_S_OCTET_STRING
CDS_Class | OM_S_OCTET_STRING
CDS_ClassVersion | OM_S_INTEGER
CDS_ObjectUID | OM_S_OCTET_STRING
CDS_AllUpTo | OM_S_OCTET_STRING
CDS_Convergence | OM_S_INTEGER
CDS_InCHName | OM_S_INTEGER
CDS_DirectoryVersion | OM_S_INTEGER
CDS_UpgradeTo | OM_S_INTEGER
CDS_LinkTimeout | OM_S_INTEGER
CDS_Towers | OM_S_OCTET_STRING

OM Syntax to CDS Data Types Translation

OM Syntax | CDS Data Type
OM_S_TELETEX_STRING | cds_char
OM_S_OBJECT_IDENTIFIER_STRING | cds_byte
OM_S_OCTET_STRING | cds_byte
OM_S_PRINTABLE_STRING | cds_char
OM_S_NUMERIC_STRING | cds_char
OM_S_BOOLEAN | cds_long
OM_S_INTEGER | cds_long
OM_S_UTC_TIME_STRING | cds_char
OM_S_ENCODING_STRING | cds_byte

CDS Data Types to OM Syntax Translation

CDS Data Type | OM Syntax
cds_none | OM_S_NULL
cds_long | OM_S_INTEGER
cds_short | OM_S_INTEGER
cds_small | OM_S_INTEGER
cds_uuid | OM_S_OCTET_STRING
cds_Timestamp | OM_S_OCTET_STRING
cds_Version | OM_S_PRINTABLE_STRING
cds_char | OM_S_TELETEX_STRING
cds_byte | OM_S_OCTET_STRING