OBJECT IDENTIFIER
values are represented using
Java class Asn1StringOID
, or a subclass thereof,
when the -oid-as-string
option is specified.
Asn1StringOID
has a public string member, value,
which must be in dotted-number format (e.g. "0.5.1234"):
public String value;
The advantage of this representation is that arbitrarily large arc identifiers may be used.
If a named type is defined:
<name> ::= OBJECT IDENTIFIER
then asn1c will generate a class resembling the following:
public class <name> extends Asn1StringOID { public <name> () { super(); } public <name> (int[] value_) { super (value_); } public <name> (String value_) { super (value_); } }