Asn1SeqOrSet Class Reference

Inheritance diagram for Asn1SeqOrSet:
Asn1Type Asn1TypeIF Asn1Seq Asn1Set

List of all members.

Public Member Functions

abstract int GetElementCount ()
abstract String GetElementName (int index)
Object GetElementValue (String name)
abstract Object GetElementValue (int index)

Detailed Description

Asn1SeqOrSet is a base class for classes representing ASN.1 sequences and sets. It provides some abstract methods by which elements can be accessed generically. /p>


Member Function Documentation

abstract int GetElementCount (  )  [pure virtual]

Return the number of declared elements, plus 1 if the sequence/set is extensible. /p>

abstract String GetElementName ( int  index  )  [pure virtual]

Return the ASN.1 name of the element identified by index. Each declared element in the sequence/set is assigned an index, beginning with zero, following the textual order of the declarations. If the element name is unknown (as for undeclared extension elements), null is returned. /p>

Object GetElementValue ( String  name  ) 

Return the value of the element identified by the given name. If the the sequence or set does not contain an element declaration with the given name, or if such element is optional and not present, null is returned. /p>

Parameters:
name 
Returns:
the value of the element or else null
abstract Object GetElementValue ( int  index  )  [pure virtual]

Return the value of the element identified by index. Each declared element in the sequence/set is assigned an index, beginning with zero, following the textual order of the declarations. If the element is optional and not present, null is returned. /p>

Returns:
the value of the element or else null. The return type is Object rather than Asn1Type because sometimes the object to be returned is an array. The returned object will be the declared type of the corresponding element in the generated code.