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 --*****************************************************************************
19 -- Type definitions --
20 ----------------------
22 SeqOfInt ::= SEQUENCE OF INTEGER
24 SeqProduct ::= SEQUENCE {
27 id OCTET STRING OPTIONAL,
34 hexadecimal OCTET STRING
37 AnyString ::= CHOICE {
38 generalstr GeneralString,
39 numericstr NumericString,
41 printablestr PrintableString,
42 universalstr UniversalString,
44 graphicstr GraphicString,
46 teletexstr TeletexString,
47 videotexstr VideotexString,
48 visiblestr VisibleString
51 ManyStrings ::= SEQUENCE OF AnyString
55 numbers SET OF Number,
59 -- Values and their encoding --
60 -------------------------------
63 c-ints SeqOfInt ::= { 1, 3, 6 }
65 c-ints-str VisibleString ::= "[1,3,6]"
68 c-product SeqProduct ::= {
75 c-product-str VisibleString ::= "{""name"":""TV"",""price"":250.000000,""id"":""1D65"",""available"":true}"
78 c-number Number ::= binary : '1100'B
80 c-number-str VisibleString ::= "{""binary"":""1100""}"
83 c-strings ManyStrings ::= {
84 generalstr : "General String <o",
85 numericstr : "1 457 664",
86 utf8str : "Doesn't actually contain non-ASCII characters",
87 printablestr : "hello",
88 universalstr : "not so universal, apparently",
90 ia5str : "one two three",
91 teletexstr : "Let's just bug out and call it even, OK?!",
92 videotexstr : "abc123;.",
93 visiblestr : "invisible"
96 c-strings-str VisibleString ::= "[{""generalstr"":""General String <o""},{""numericstr"":""1 457 664""},{""utf8str"":""Doesn't actually contain non-ASCII characters""},{""printablestr"":""hello""},{""universalstr"":""not so universal, apparently""},{""bmpstr"":""abc""},{""ia5str"":""one two three""},{""teletexstr"":""Let's just bug out and call it even, OK?!""},{""videotexstr"":""abc123;.""},{""visiblestr"":""invisible""}]"
99 c-set-val ComplexSet ::= {
106 hexadecimal : '16678D'H,
110 printablestr : "first",
115 c-set-val-str VisibleString ::= "{""product"":{""name"":""Headset"",""price"":28.500000,""available"":false},""numbers"":[{""hexadecimal"":""16678D""},{""decimal"":12}],""strings"":[{""printablestr"":""first""},{""numericstr"":""2""}]}"