Sync with 5.2.0
[deliverable/titan.core.git] / regression_test / XML / XER / EmptyUnion.asn
CommitLineData
970ed795
EL
1--/////////////////////////////////////////////////////////////////////////////
2-- Copyright (c) 2000-2014 Ericsson Telecom AB
3-- All rights reserved. This program and the accompanying materials
4-- are made available under the terms of the Eclipse Public License v1.0
5-- which accompanies this distribution, and is available at
6-- http://www.eclipse.org/legal/epl-v10.html
7--/////////////////////////////////////////////////////////////////////////////
8EmptyUnion DEFINITIONS
9AUTOMATIC TAGS ::=
10
11BEGIN
12
13IMPORTS ;
14
15/* Regression test for TR 936. Just get it to compile.
16
17Empty unions were not handled. These are not allowed for ordinary
18union/CHOICE types, but can be caused by open type.
19
20*/
21
22MAP-EXTENSION-V2 ::= CLASS {
23 &ExtensionType OPTIONAL,
24 &extensionId OBJECT IDENTIFIER }
25 -- The length of the Object Identifier shall not exceed 16 octets and the
26 -- number of components of the Object Identifier shall not exceed 16
27
28
29
30ExtensionContainer-v2 ::= SEQUENCE {
31 privateExtensionList [0]PrivateExtensionList-v2 OPTIONAL,
32 pcs-Extensions [1]PCS-Extensions-v2 OPTIONAL,
33 ...}
34
35
36PrivateExtensionList-v2 ::= SEQUENCE SIZE (1..maxNumOfPrivateExtensions-v2) OF
37 PrivateExtension-v2
38
39PrivateExtension-v2 ::= SEQUENCE {
40 extId MAP-EXTENSION-V2.&extensionId
41 ({ExtensionSet-v2}),
42 extType MAP-EXTENSION-V2.&ExtensionType
43 ({ExtensionSet-v2}{@extId}) OPTIONAL}
44
45maxNumOfPrivateExtensions-v2 INTEGER ::= 10
46
47
48extensionIE-v2-1 MAP-EXTENSION-V2 ::= { &extensionId { iso standard 8571 } }
49
50extensionIE-v2-2 MAP-EXTENSION-V2 ::= { &ExtensionType INTEGER, &extensionId { iso standard 8572 } }
51
52
53ExtensionSet-v2 MAP-EXTENSION-V2 ::=
54 { extensionIE-v2-1 |
55 extensionIE-v2-2,
56 ...
57 -- ExtensionSet is the set of all defined private extensions
58 }
59
60 -- Unsupported private extensions shall be discarded if received.
61
62
63PCS-Extensions-v2 ::= SEQUENCE {
64 ...}
65
66
67
68pike PrivateExtension-v2 ::= {
69 extId { iso standard 8571 }
70}
71
72pike2 PrivateExtension-v2 ::= {
73 extId { iso standard 8572 },
74 extType iNTEGER : 3 -- OSS asn1c calls this member "INTEGER"
75}
76
77da ExtensionContainer-v2 ::= {
78 privateExtensionList { pike, pike2 }
79}
80
81END
This page took 0.051499 seconds and 5 git commands to generate.