summaryrefslogtreecommitdiff
path: root/docs/source/pyasn1/type/univ/choice.rst
blob: 323932bb3c689f173191995d80ca305e1c6c5e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

.. _univ.Choice:

.. |ASN.1| replace:: Choice

|ASN.1| type
------------

.. autoclass:: pyasn1.type.univ.Choice(componentType=None, tagSet=tagSet(), subtypeSpec=ConstraintsIntersection())
   :members: isValue, isSameTypeWith, isSuperTypeOf, tagSet, effectiveTagSet, tagMap, componentType, subtypeSpec,
             getComponentByPosition, setComponentByPosition, getComponentByName, setComponentByName, setDefaultComponents,
             getComponentByType, setComponentByType, getName, getComponent, isInconsistent

   .. note::

        The |ASN.1| type can only hold a single component at a time belonging to the list of allowed types.

   .. automethod:: pyasn1.type.univ.Choice.clone(componentType=None, tagSet=tagSet(), subtypeSpec=ConstraintsIntersection())
   .. automethod:: pyasn1.type.univ.Choice.subtype(componentType=None, implicitTag=Tag(), explicitTag=Tag(),subtypeSpec=ConstraintsIntersection())