Other generated methods include the following; these are documented more fully in separate sections:
Get and set methods are generated when the -getset
command-line swith is set. These methods allow bean-style access to each element in a container type (SEQUENCE
, SET
, and CHOICE
).
Print methods are generated when the -print
or -prtToStr
command-line switches are specified. Users can call these methods to write a formatted representation of the object to a print writer, a print stream, or a string.
Public set_<element>
methods are generated for all CHOICE
types. These allow users to select the desired element to be encoded in a CHOICE
. If the -getset
switch is specified, these methods are replaced by set methods as described above.
If -copy
is specified on the command-line, ASN1C generates overrides to the standard clone
method.
ASN1C generates equals
and hashCode
methods when -compare
is specified on the command line.
Specifying -genmetadata
on the command line causes ASN1C to generate methods that allow users access to some of the meta data for containers, like whether elements are required to be present or the value range specified for an element.