|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1Type com.objsys.asn1j.runtime.Asn1Choice
public abstract class Asn1Choice
This class represents the ASN.1 CHOICE built-in type.
Field Summary | |
---|---|
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. |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mAsn1TypeName, 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 Summary | |
---|---|
Asn1Choice()
The default constructor initializes the choiceID and value. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, decode, decode, decode, decode, decode, decode, decodeXML, encode, encode, encode, encode, encode, encode, encode, equals, getLength, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient int choiceID
protected transient Asn1Type element
Constructor Detail |
---|
public Asn1Choice()
Method Detail |
---|
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()
hashCode
in class Asn1Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |