ASN.1 Single Value Constraints

Single value constraints limit the set of values for a type to a single value. Single value constraints can be used with any parent type. The type's possible values are listed in parentheses following the type. A vertical bar ("|") is used to separate each value.

NOTE: Single value constraints applied to INTEGER types are PER-visible, that is, they affect PER encodings.


OperationCode ::= INTEGER (1 | 2 | 4 | 5)

MoreCodes     ::= INTEGER (11 UNION 12 UNION 14 UNION 15)

TextResponse  ::= PrintableString ("Success" | "Failure")

Related Topics