public abstract class Asn1Choice extends Asn1Type
Modifier and Type | Field and Description |
---|---|
protected int |
choiceID
This member variable is where the selected choice option
identifier is stored.
|
protected Asn1Type |
element
This member variable is where the selected choice option
value is stored.
|
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mNonParameterizedTypeName, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString
Constructor and Description |
---|
Asn1Choice()
The default constructor initializes the choiceID and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Return a clone of this choice.
|
boolean |
equals(java.lang.Object cv_)
This method compares this type element with the
passed type element.
|
java.lang.String |
getAsn1TypeName()
Returns the ASN.1 type name.
|
int |
getChoiceID()
This method returns the choice identifier.
|
Asn1Type |
getElement()
This method returns the element object.
|
abstract java.lang.String |
getElemName()
This abstract method return the name of the selected element.
|
int |
hashCode()
This method returns the hashcode for the chosen element.
|
void |
setElement(int choiceID,
Asn1Type element)
This protected method sets the choice ID and value to the given
values.
|
_setKey, _setLicLocation, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decodeXML, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeAsOpenType, equals, getLength, getNonParameterizedTypeName, getTypeName, indent, indent, isOpenType, matchTag, matchTag, pdiag, print, print, print, setNonParameterizedTypeName, setOpenType
protected transient int choiceID
protected transient Asn1Type element
public Asn1Choice()
public java.lang.String getAsn1TypeName()
getAsn1TypeName
in class Asn1Type
public int getChoiceID()
public Asn1Type getElement()
public abstract java.lang.String getElemName()
public void setElement(int choiceID, Asn1Type element)
public boolean equals(java.lang.Object cv_)
equals
in class java.lang.Object
cv_
- Asn1Choice type valuepublic int hashCode()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Asn1Type
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.Cloneable