
General Form of a Generated Java Source File
- Package specification
- Import statements
- Class declaration
- A tag constant object declaration
- Public member variables
- Constructors
- Public decode() method
- Public encode() method
- Other methods
- Inner SAX Handler class (XER only)
Additional specialized items may be present as well depending on the base type of the target production. These specialized items are discussed in the sections on ASN.1 to Java mappings for the various ASN.1 types.
A complete generated Java source file for the `EmployeeNumber' production within the production within the ASN.1 sample file `employee.asn' can be found on the following page. The ASN.1 production from which this file was generated is as follows:
EmployeeNumber ::= [APPLICATION 2] IMPLICIT INTEGER
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 |