From d0b7f2ec8677eec8f9aa31103a66f5cab18e9308 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Tue, 27 Aug 2019 10:17:42 +0200 Subject: 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. --- docs/source/pyasn1/type/base/constructedasn1type.rst | 2 +- docs/source/pyasn1/type/constraint/contents.rst | 1 + docs/source/pyasn1/type/constraint/withcomponents.rst | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 docs/source/pyasn1/type/constraint/withcomponents.rst (limited to 'docs') 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: -- cgit v1.2.1