aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/InfObj2.asn
diff options
context:
space:
mode:
authorKenneth Lundin <[email protected]>2010-02-19 14:01:57 +0000
committerErlang/OTP <[email protected]>2010-02-19 14:01:57 +0000
commit18bd1239bee04427340a44f57f993ea92c264e41 (patch)
treedbb3031dcd2e446eb457ff7ac5229949517d7557 /lib/asn1/test/asn1_SUITE_data/InfObj2.asn
parent729565dc3f8bcf8829508136498aef6a542840f4 (diff)
downloadotp-18bd1239bee04427340a44f57f993ea92c264e41.tar.gz
otp-18bd1239bee04427340a44f57f993ea92c264e41.tar.bz2
otp-18bd1239bee04427340a44f57f993ea92c264e41.zip
OTP-8463 Support for EXTENSIBILITY IMPLIED and SET/SEQ OF NamedType is
added.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/InfObj2.asn')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/InfObj2.asn156
1 files changed, 156 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/InfObj2.asn b/lib/asn1/test/asn1_SUITE_data/InfObj2.asn
new file mode 100644
index 0000000000..faba7371a4
--- /dev/null
+++ b/lib/asn1/test/asn1_SUITE_data/InfObj2.asn
@@ -0,0 +1,156 @@
+InfObj2 DEFINITIONS ::=
+BEGIN
+
+
+RANAP-ELEMENTARY-PROCEDURE ::= CLASS {
+ &InitiatingMessage ,
+ &SuccessfulOutcome OPTIONAL,
+ &Outcome DEFAULT NULL,
+ &vartypvalue &Outcome,
+ &FixTypeValSet PrintableString,
+ &VarTypeValSet &InitiatingMessage,
+ &infoObject RANAP-ELEMENTARY-PROCEDURE,
+ &InfObjectSet CLASS2,
+ &UnsuccessfulOutcome OPTIONAL,
+ &procedureCode ProcedureCode UNIQUE,
+ &criticality Criticality DEFAULT ignore
+}
+WITH SYNTAX {
+ INITIATING MESSAGE &InitiatingMessage
+ [SUCCESSFUL OUTCOME &SuccessfulOutcome]
+ [UNSUCCESSFUL OUTCOME &UnsuccessfulOutcome]
+ [OUTCOME &Outcome]
+ PROCEDURE CODE &procedureCode
+ [CRITICALITY &criticality]
+}
+
+RANAP-PDU ::= CHOICE {
+ initiatingMessage [0] InitiatingMessage,
+ substrings [1] SEQUENCE {
+ type RANAP-ELEMENTARY-PROCEDURE.&procedureCode({RANAP-ELEMENTARY-PROCEDURES}),
+ strings SEQUENCE OF CHOICE {
+ initial [0] RANAP-ELEMENTARY-PROCEDURE.&Outcome({
+ RANAP-ELEMENTARY-PROCEDURES}{@substrings.type}),
+ final [1] RANAP-ELEMENTARY-PROCEDURE.&Outcome({RANAP-ELEMENTARY-PROCEDURES}{@substrings.type})
+ }
+ },
+-- successfulOutcome SuccessfulOutcome,
+-- unsuccessfulOutcome UnsuccessfulOutcome,
+-- outcome Outcome,
+ ...
+ }
+
+CLASS2 ::= RANAP-ELEMENTARY-PROCEDURE
+
+MY-CLASS ::= CLASS {
+ &integerValue INTEGER UNIQUE,
+ &booleanValue BOOLEAN,
+ &stringValue PrintableString
+ }
+
+myobject MY-CLASS ::= {
+ &integerValue 12,
+ &booleanValue TRUE,
+ &stringValue "hejsan"
+ }
+MyObjectSet MY-CLASS ::= {
+ myobject
+ }
+
+InitiatingMessage ::= SEQUENCE {
+ procedureCode RANAP-ELEMENTARY-PROCEDURE.&procedureCode ({RANAP-ELEMENTARY-PROCEDURES}),
+ criticality RANAP-ELEMENTARY-PROCEDURE.&criticality ({RANAP-ELEMENTARY-PROCEDURES}{@procedureCode}),
+ value RANAP-ELEMENTARY-PROCEDURE.&InitiatingMessage ({RANAP-ELEMENTARY-PROCEDURES}{@procedureCode})
+ }
+
+iu-Release RANAP-ELEMENTARY-PROCEDURE ::= {
+ INITIATING MESSAGE Iu-ReleaseCommand
+ SUCCESSFUL OUTCOME Iu-ReleaseComplete
+ PROCEDURE CODE id-Iu-Release1
+ CRITICALITY ignore
+ }
+
+relocationPreparation RANAP-ELEMENTARY-PROCEDURE ::= {
+ INITIATING MESSAGE INTEGER --Iu-ReleaseCommand
+ SUCCESSFUL OUTCOME Iu-ReleaseComplete
+ PROCEDURE CODE id-Iu-Release2
+ CRITICALITY notify
+ }
+
+object3 RANAP-ELEMENTARY-PROCEDURE ::= {
+ &InitiatingMessage Iu-ReleaseCommand,
+ &SuccessfulOutcome Iu-ReleaseComplete,
+ &procedureCode id-Iu-Release3,
+ &criticality reject
+ }
+
+object4 RANAP-ELEMENTARY-PROCEDURE ::= {
+ &InitiatingMessage INTEGER,
+ &SuccessfulOutcome PrintableString,
+ &procedureCode id-Iu-Release4,
+ &criticality reject
+ }
+
+object5 RANAP-ELEMENTARY-PROCEDURE ::= {
+ &InitiatingMessage INTEGER,
+ &SuccessfulOutcome PrintableString,
+ &Outcome ProcedureCode,
+ &vartypvalue 12,
+ &infoObject object4,
+ &InfObjectSet MyObjectSet,
+ &procedureCode id-Iu-Release5,
+ &criticality reject
+ }
+
+
+RANAP-ELEMENTARY-PROCEDURES RANAP-ELEMENTARY-PROCEDURE ::= {
+ iu-Release |
+ relocationPreparation ,
+ ...
+ }
+
+RANAP-ELEMENTARY-PROCEDURES2 RANAP-ELEMENTARY-PROCEDURE ::= {
+ iu-Release |
+ relocationPreparation
+ }
+
+
+OBJECTSET1 RANAP-ELEMENTARY-PROCEDURE ::= {
+ {INITIATING MESSAGE Iu-ReleaseCommand SUCCESSFUL OUTCOME Iu-ReleaseComplete PROCEDURE CODE id-Iu-Release1 CRITICALITY ignore} | {INITIATING MESSAGE Iu-ReleaseCommand PROCEDURE CODE id-Iu-Release2}
+ }
+
+OBJECTSET2 RANAP-ELEMENTARY-PROCEDURE ::= {
+ iu-Release |
+ {INITIATING MESSAGE Iu-ReleaseCommand SUCCESSFUL OUTCOME Iu-ReleaseComplete PROCEDURE CODE id-Iu-Release4 CRITICALITY ignore} |
+ relocationPreparation |
+ {INITIATING MESSAGE Iu-ReleaseCommand PROCEDURE CODE id-Iu-Release5} ,
+ ...
+ }
+
+OBJECTSET3 RANAP-ELEMENTARY-PROCEDURE ::= {
+ iu-Release,
+ ...
+ }
+
+OBJECTSET4 RANAP-ELEMENTARY-PROCEDURE ::= {
+ iu-Release
+ }
+
+Iu-ReleaseCommand ::= SEQUENCE {
+ first INTEGER,
+ second BOOLEAN
+ }
+
+Iu-ReleaseComplete ::= INTEGER (1..510)
+
+ProcedureCode ::= INTEGER (0..255)
+Criticality ::= ENUMERATED { reject, ignore, notify }
+id-Iu-Release1 INTEGER ::= 1
+id-Iu-Release2 INTEGER ::= 2
+id-Iu-Release3 INTEGER ::= 3
+id-Iu-Release4 INTEGER ::= 4
+id-Iu-Release5 INTEGER ::= 5
+
+END
+
+