Indicate your preferences for the ASN.1 to Java compiler settings on the ASN.1 > Compiler > ASN.1 to Java Compiler preference page.
Option |
Description |
Default |
---|---|---|
Serial Number |
A hexadecimal string present of the serial number used by this compiler, this serial number is also used by the runtime library. |
Empty |
Execution environment |
Select the target execution environment for the generated code, available execution environments are CLDC-1.0, CLDC-1.1, J2SE-1.4, J2SE-1.5, JavaSE-1.6. Note that when CLDC-1.0, CLDC-1.1, J2SE-1.4 are selected, some options are not applicable such as ENUMERATED type mapping to Enum Type. |
J2SE-1.5 |
INTEGER type mapping to: |
When selecting Integer option, the compiler will map an INTEGER type to Integer regardless of it's range; When selecting Long option, the compiler will map an INTEGER type to Long regardless of it's range; When selecting Automatic option, the compiler will map an INTEGER type to Integer or Long depend on the range. |
Automatic |
ENUMERATED type mapping to: |
When selecting Enum Type option, the compiler will try to generate enum instead of class for ENUMERATED type; When selecting Singleton Class option, the compiler will generate singleton class for ENUMERATED type; When selecting Automatic option, the compiler will first try Enum Type, if fails, then try Singleton Class. |
automatic |
REAL type mapping to: |
When selecting Float option, the compiler always maps a REAL type to Float; When selecting Double option, the compiler always maps a REAL type to Double; When selecting Automatic option, the compiler always maps a REAL type to Float or Double depend on the range. |
Automatic |
BER |
When enabling this option, the compiler will generate BER encoding/decoding methods for generated Java class. |
On |
CER |
When enabling this option, the compiler will generate CER encoding/decoding routines for generated Java class. |
Off |
DER |
When enabling this option, the compiler will generate DER encoding/decoding routines for generated Java class. |
Off |
PER |
When enabling this option, the compiler will generate PER encoding/decoding routines for generated Java class. |
Off |
Output Folder |
This option specify the sub-output folder (sub-folder of the output folder in ASN.1 > Compiler) for the ASN.1 to Java Compiler. |
java |
Package prefix to be prepended to each package name |
When enabled, the package prefix specified in the text box will be prepended to each generated class's package. |
On |
Generate getter and setter methods |
When enabled, the compiler will generate getter and setter methods for each class's fileds, and change the field's visibility to private. |
Off |
Generate clone() method |
When enabled, the compiler will generate clone method for each class (except enums). |
Off |
Generate equals() method |
When enabled, the compiler will generate equals method for each class (except enums). |
Off |
Generate print() method |
When enabled, the compiler will generate print method for each class. |
Off |