diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-08-27 10:17:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 10:17:42 +0200 |
commit | d0b7f2ec8677eec8f9aa31103a66f5cab18e9308 (patch) | |
tree | 52c0e965e87f064d88a10bc43f9cfd9c86fd052a /docs | |
parent | 7214dcae11f58b0c480bd30170da3eb4734ca707 (diff) | |
download | pyasn1-git-d0b7f2ec8677eec8f9aa31103a66f5cab18e9308.tar.gz |
Add `SET ... WITH COMPONENTS ...` ASN.1 construct support (#171)
Added `WithComponentsConstraint` along with related
`ComponentPresentConstraint` and `ComponentAbsentConstraint` classes
to be used with `Sequence`/`Set` types representing
`SET ... WITH COMPONENTS ...` like ASN.1 constructs.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/pyasn1/type/base/constructedasn1type.rst | 2 | ||||
-rw-r--r-- | docs/source/pyasn1/type/constraint/contents.rst | 1 | ||||
-rw-r--r-- | docs/source/pyasn1/type/constraint/withcomponents.rst | 16 |
3 files changed, 18 insertions, 1 deletions
diff --git a/docs/source/pyasn1/type/base/constructedasn1type.rst b/docs/source/pyasn1/type/base/constructedasn1type.rst index cf7f665..8709066 100644 --- a/docs/source/pyasn1/type/base/constructedasn1type.rst +++ b/docs/source/pyasn1/type/base/constructedasn1type.rst @@ -7,4 +7,4 @@ ------------ .. autoclass:: pyasn1.type.base.ConstructedAsn1Type(tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), componentType=None) - :members: isSameTypeWith, isSuperTypeOf, tagSet, effectiveTagSet, tagMap, subtypeSpec, isInconsistent + :members: isSameTypeWith, isSuperTypeOf, tagSet, effectiveTagSet, tagMap, subtypeSpec diff --git a/docs/source/pyasn1/type/constraint/contents.rst b/docs/source/pyasn1/type/constraint/contents.rst index 8e4db7c..a4e2424 100644 --- a/docs/source/pyasn1/type/constraint/contents.rst +++ b/docs/source/pyasn1/type/constraint/contents.rst @@ -32,6 +32,7 @@ they get attached to ASN.1 type object at a *.subtypeSpec* attribute. /pyasn1/type/constraint/valuerange /pyasn1/type/constraint/valuesize /pyasn1/type/constraint/permittedalphabet + /pyasn1/type/constraint/withcomponents Logic operations on constraints diff --git a/docs/source/pyasn1/type/constraint/withcomponents.rst b/docs/source/pyasn1/type/constraint/withcomponents.rst new file mode 100644 index 0000000..f1556b0 --- /dev/null +++ b/docs/source/pyasn1/type/constraint/withcomponents.rst @@ -0,0 +1,16 @@ + +.. _constrain.WithComponentsConstraint: + +.. |Constraint| replace:: WithComponentsConstraint + +WITH COMPONENTS constraint +-------------------------- + +.. autoclass:: pyasn1.type.constraint.WithComponentsConstraint(*fields) + :members: + +.. autoclass:: pyasn1.type.constraint.ComponentPresentConstraint() + :members: + +.. autoclass:: pyasn1.type.constraint.ComponentAbsentConstraint() + :members: |