
ENUMERATED
The ASN.1 ENUMERATED type is converted into an XSD token type with enumeration items. The enumeration items correspond to the enumerated identifiers in the type.
If the -attrs enum command-line option is specified and the enumerated items contain numbers (i.e do not follow the standards sequence), then an asn1:value attribute is added to the type to allow an application to map the enumerated identifiers to numbers. If an asn1:value attribute is not present, then an application can safely assume that the enumerated identifiers are in sequential order starting at zero.
The asn1:value attributes added to the enumeration items above are an example of non-native attributes. These are attributes that are not defined within the XML Schema standard but that may be added to provide additional information about an element contained within the schema. Conformant XML schema processors should ignore these attributes. They are only added to the generated code if the -attrs enum option is added to the ASN1C command-line (or -attrs option with no qualifiers).
Objective Systems, Inc.102 Pickering Way, Suite #506Exton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |