Table of Contents
In version 6.8, ASN1C adds the ability to generate methods to inspect
the elements in a SEQUENCE
or SET
.
Using the -genmetadata
option, users can generate
the following methods:
public static boolean isRequired (String elemName) throws Asn1InvalidElemException
public static boolean getValueRange (String elemName,
Asn1ValueRange range)
These methods provide access to syntactic information present in
the schema used during code generation: whether the elements in a
SEQUENCE
or SET
are required or
optional, and what, if any, value range may be applied to the elements.
The following sections describe these methods in detail.