Google

LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">

Objects of the base.VariableTypeAsn1Object class

Instances of base.VariableTypeAsn1Object class implement mutable sequence object protocol by means of the following methods:

__getitem__(index)

Returns a reference to embedded component (class instance) by index (integer).

__setitem__(index, value)

Assigns a reference to embedded component (class instance) by index (integer).

__delitem__(index)

Removes a reference to embedded component (class instance) by index (integer).

append(value)

Assigns a reference to embedded component (class instance) passed by value (class instance) at the very last position of the sequence.

extend(value)

Assigns one or more references to embedded components (class instance) passed by value (a list of class instances) at the very last position of the sequence.

insert(index, value)

Assigns a reference to embedded component (class instance) at the index (integer) position of the sequence.

pop([index])

Returns a reference to embedded component (class instance) and remove it from the very last position of the sequence.

index(value)

Returns a position (integer) of matching component (class instance) at the sequence.

__len__()

Returns the number of embedded components of the sequence.

__cmp__(other)

Called on object comparation of this ASN.1 object with the other, which should be an instance of VariableTypeAsn1Object class.

__hash__()

Returns object hash value, which is actually a XOR'ed set of hash values of embedded objects.

__str__()
__repr__()

Returns a printable representation of ASN.1 object structure.

Instances of VariableTypeAsn1Object class make use of the following public instance variable:

protoComponents

This instance variable should be initialized to a class reference of embedded component allowed to be stored at this particular ASN.1 object implementation.


ilya@glas.net