ASN.1 / XML Software Tools from Objective Systems

Validation and Code Generation

For convenience, Validate/Generate actions are also available for the project and for the ASN.1 files. They are available as context menu for ASN.1 files and ASN1C projects, in the Project menu and, as previously described, also as toolbar actions.

File and Project Actions

The Validation action makes use of only the following ASN1C Compiler Command line Options:

-asnstd
set standard to be used for parsing ASN.1 source file. Possible values - x208, x680, mixed (default is x680)
-I
set import file directory
-depends
compile main file and dependent IMPORT items
-config
specify configuration file
-warnings
output compiler warning messages
-list
generate listing

together with the additional user options.

On the other side, the Code Generation action uses all specified options. This action passes on the previously configured wizard options to the ASN1C Compiler which then generates Java, C#, C or C++ code from the input files. The options can be also observed inside the Console.

ASN1C Compiler Console

The ASN1C Compiler Console presents the plain output of the ASN1C Compiler created during the validation and code generation process. Additional informations are also presented here in order to enhance the feedback for the background operation. This Console is shown on each Validation and Code Generation action. Please note that the console has by default a limited buffer size of 80000 characters. These limits can be configured at the Run/Debug preferences.

Markers and the Problems view

As you work with resources in the workbench, various builders may automatically log problems, errors, or warnings in the Problems view. For example, when you validate an ASN.1 source file that contains syntax errors, those will be logged in the Problems view. When you double-click the icon for a problem, error, or warning, the editor for the associated resource automatically opens to the relevant line of code.

By default the problems view will group your problems by severity. You can also group them by type or not at all.

The first column of the Problems view displays an icon that denotes the type of line item, the category and the description. Left-click the item to open the file in an editor and highlight the line containing the problem.

You can filter the Problems view to view only warnings and errors associated with a particular resource or group of resources. You can add multiple filters to the problems view and enable or disable them as required. Filters are additive so any problem that satisfies at least one of the filters will be shown.

Runtime libraries

The Java built-in libraries for the ASN.1 runtime are added automatically to each new ASN1C Java Project. Nevertheless, the library can be added to the build path of every Java project using the context menu Configure Build Path. From this dialog select Add and then the ASN1C Runtime Library. Now the project should have the library on it's build path. Please note that currently only the asn1rt.jar is contained in the library.

Copyright Notice

Copyright ©1997-2008 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.