TOC PREV NEXT INDEX


Constructors



Constructors are generated to allow an object to be initialized in a number of different ways. All productions have a default constructor with no parameters. This creates an empty object that can be filled in at a later time. Constructors are also created that take a parameter of the base type value to allow direct population upon creation of an object. In our example code, two constructors were generated:

   public EmployeeNumber () {
 
      super();
 
   }
 

 
   public EmployeeNumber (int value_) {
 
      super (value_);
 
   }
 

More complex constructed ASN.1 types such as a SEQUENCE would have a constructor that would have an argument for each defined element. A CHOICE on the other hand would have a unique constructor for each of the possible choice items. See the sections on specific ASN.1 types to find out exactly what constructors are generated for a given type.


Objective Systems, Inc.

102 Pickering Way, Suite #506
Exton, 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
TOC PREV NEXT INDEX

Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.


This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.