
Information Object
Information Object code will be generated in a Java source file with a special class to hold the values. The name of the source file and class is of the following format:
In this definition, <ModuleName> would be replaced with the name of the ASN.1 module in which the values are defined.
For each Information Object defined within a specification, a Java constant is generated which is an instance of the ASN.1 CLASS definition for the object. Each Information Object constant calls the Class constructor with the field value specified in the ASN.1 information object definition.
If the ASN.1 CLASS field is optional and the field value is absent in the Information Object definition, then its corresponding member variable will be initialized to "null". If the ASN.1 CLASS field has a default value and its field value is absent in the Information Object, then the generated code for the Information Object will set the Class field's value to the default value.
<name> <ClassName> ::= <InfoObject>public final static <ClassName> <name> = new <ClassName> (<InfoObject values>>);name ATTRIBUTE ::= { WITH SYNTAX VisibleString ID { 0 1 1 } }public static final ATTRIBUTE name = new ATTRIBUTE ( new Asn1VisibleString(), new Asn1ObjectIdentifier(new int[]{0, 1, 1}));
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 |