|
LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">
Objects of the base.ChoiceTypeAsn1Object class
Instances of
base.ChoiceTypeAsn1Object class implement the mapping object protocol
by means of the following methods:
- __getitem__(key)
-
Returns a reference to embedded component (class instance) by
key (type name).
- __setitem__(key,
value)
-
Assigns a reference to embedded component (class instance) by
key (type name).
- __delitem__(key)
-
Removes a reference to embedded component (class instance) by
key (type name).
- keys()
-
Returns a list of known keys (types names).
- has_key(key)
-
Returns true if key (type name) is present in this object.
- values()
-
Returns a list of references to embedded components (class instances).
- items()
-
Returns a list of tuples each of which represents a key-value pair (type-name,
embedded-component).
- update(items)
-
Merges the items dictionary with the payload of this object.
- __cmp__(other)
-
Called on object comparation of this ASN.1 object with the
other, which should be an instance of
ChoiceTypeAsn1Object class.
- __hash__()
-
Returns object hash value, which is actually a XOR'ed set of hash values
of embedded objects and keys.
- __str__()
- __repr__()
-
Returns a printable representation of ASN.1 object structure.
Instances of ChoiceTypeAsn1Object class make use of the
following public instance variable:
- choiceNames
- choiceComponents
-
These instance variables should be initialized to type names and corresponding
class references of embedded components to specify the set of allowed set of
types names (keys) and class references (embedded components).
- initialComponent
-
This instance variable may be initialized to a class reference of one of
possible embedded components (listed in |