1{
2    "Valid Case": {
3        "ResourceID": 234,
4        "ReadCase1": {
5            "Read": [
6                {
7                    "LockFlag": "LockAll",
8                    "SegmentLength": 2
9                },
10                {
11                    "LockFlag": "DontLock",
12                    "SegmentLength": 1
13                }
14            ]
15        },
16        "ReadCase2": {
17            "Read": [
18                {
19                    "LockFlag": "DontLock",
20                    "SegmentLength": 3
21                },
22                {
23                    "LockFlag": "LockAll",
24                    "SegmentLength": 1
25                }
26            ]
27        },
28        "ReadCase3": {
29            "Read": [
30                {
31                    "LockFlag": "DontLock",
32                    "SegmentLength": 4
33                },
34                {
35                    "LockFlag": "LockSame",
36                    "SegmentLength": 3
37                }
38            ]
39        },
40        "ReadCase4": {
41            "Read": [
42                {
43                    "LockFlag": "DontLock",
44                    "SegmentLength": 2
45                },
46                {
47                    "LockFlag": "LockSame",
48                    "SegmentLength": 1
49                }
50            ]
51        },
52        "ReadCase5": {
53            "Read": [
54                {
55                    "LockFlag": "DontLock",
56                    "SegmentLength": 2
57                },
58                {
59                    "LockFlag": "LockAll",
60                    "SegmentLength": 1
61                }
62            ]
63        },
64        "ReadCase6": {
65            "Read": [
66                {
67                    "LockFlag": "LockSame",
68                    "SegmentLength": 2
69                },
70                {
71                    "LockFlag": "DontLock",
72                    "SegmentLength": 1
73                }
74            ]
75        },
76        "ReadCase7": {
77            "Read": [
78                {
79                    "LockFlag": "LockAll",
80                    "SegmentLength": 2
81                },
82                {
83                    "LockFlag": "DontLock",
84                    "SegmentLength": 1
85                }
86            ]
87        },
88        "WriteCase1": {
89            "Write": [
90                {
91                    "LockFlag": "LockAll",
92                    "SegmentLength": 2
93                },
94                {
95                    "LockFlag": "DontLock",
96                    "SegmentLength": 1
97                }
98            ]
99        },
100        "WriteCase2": {
101            "Write": [
102                {
103                    "LockFlag": "DontLock",
104                    "SegmentLength": 3
105                },
106                {
107                    "LockFlag": "LockAll",
108                    "SegmentLength": 1
109                }
110            ]
111        },
112        "WriteCase3": {
113            "Write": [
114                {
115                    "LockFlag": "DontLock",
116                    "SegmentLength": 4
117                },
118                {
119                    "LockFlag": "LockSame",
120                    "SegmentLength": 3
121                }
122            ]
123        },
124        "WriteCase4": {
125            "Write": [
126                {
127                    "LockFlag": "DontLock",
128                    "SegmentLength": 2
129                },
130                {
131                    "LockFlag": "LockAll",
132                    "SegmentLength": 1
133                }
134            ]
135        },
136        "WriteCase5": {
137            "Write": [
138                {
139                    "LockFlag": "DontLock",
140                    "SegmentLength": 2
141                },
142                {
143                    "LockFlag": "LockSame",
144                    "SegmentLength": 1
145                }
146            ]
147        },
148        "WriteCase6": {
149            "Write": [
150                {
151                    "LockFlag": "LockAll",
152                    "SegmentLength": 2
153                },
154                {
155                    "LockFlag": "DontLock",
156                    "SegmentLength": 1
157                }
158            ]
159        },
160        "WriteCase7": {
161            "Write": [
162                {
163                    "LockFlag": "LockSame",
164                    "SegmentLength": 2
165                },
166                {
167                    "LockFlag": "DontLock",
168                    "SegmentLength": 1
169                }
170            ]
171        }
172    },
173    "Invalid Case": {
174        "ResourceIDInvalidDataType": "234",
175        "ReadCase1": {
176            "read": [
177                {
178                    "LockFlag": "DontLock",
179                    "SegmentLength": 3
180                },
181                {
182                    "LockFlag": "LockSame",
183                    "SegmentLength": 1
184                }
185            ]
186        },
187        "ReadCase2": {
188            "READ": [
189                {
190                    "LockFlag": "DontLock",
191                    "SegmentLength": 3
192                },
193                {
194                    "LockFlag": "LockSame",
195                    "SegmentLength": 1
196                }
197            ]
198        },
199        "ReadCase3": {
200            "Red": [
201                {
202                    "LockFlag": "DontLock",
203                    "SegmentLength": 3
204                },
205                {
206                    "LockFlag": "LockSame",
207                    "SegmentLength": 1
208                }
209            ]
210        },
211        "ReadCase4": {
212            "*Read": [
213                {
214                    "LockFlag": "DontLock",
215                    "SegmentLength": 3
216                },
217                {
218                    "LockFlag": "LockSame",
219                    "SegmentLength": 1
220                }
221            ]
222        },
223        "ReadCase5": {
224            "ReaD": [
225                {
226                    "LockFlag": "DontLock",
227                    "SegmentLength": 3
228                },
229                {
230                    "LockFlag": "LockSame",
231                    "SegmentLength": 1
232                }
233            ]
234        },
235        "ReadCase6": {
236            "Read": [
237                {
238                    "LockFlag": "lockall",
239                    "SegmentLength": 1
240                }
241            ]
242        },
243        "ReadCase7": {
244            "Read": [
245                {
246                    "LockFlag": "DontLock",
247                    "SegmentLength": 3
248                },
249                {
250                    "LockFlag": "locksame",
251                    "SegmentLength": 1
252                }
253            ]
254        },
255        "ReadCase8": {
256            "Read": [
257                {
258                    "LockFlag": "dontlock",
259                    "SegmentLength": 3
260                },
261                {
262                    "LockFlag": "locksame",
263                    "SegmentLength": 1
264                }
265            ]
266        },
267        "ReadCase9": {
268            "Read": [
269                {
270                    "LockFlag": "ontLock",
271                    "SegmentLength": 3
272                },
273                {
274                    "LockFlag": "LockAll",
275                    "SegmentLength": 1
276                }
277            ]
278        },
279        "ReadCase10": {
280            "Read": [
281                {
282                    "LockFlag": "*DontLock",
283                    "SegmentLength": 3
284                },
285                {
286                    "LockFlag": "LockAll",
287                    "SegmentLength": 1
288                }
289            ]
290        },
291        "ReadCase11": {
292            "Read": [
293                {
294                    "LockFlag": "dontlock",
295                    "SegmentLength": 3
296                },
297                {
298                    "LockFlag": "lockall",
299                    "SegmentLength": 1
300                }
301            ]
302        },
303        "ReadCase12": {
304            "Read": [
305                {
306                    "LockFlag": "DontLock",
307                    "SegmentLength": 7
308                },
309                {
310                    "LockFlag": "LockAll",
311                    "SegmentLength": 0
312                }
313            ]
314        },
315        "ReadCase13": {
316            "Read": [
317                {
318                    "LockFlag": "DontLock",
319                    "SegmentLength": 3
320                },
321                {
322                    "LockFlag": "LockAll",
323                    "SegmentLength": 0
324                }
325            ]
326        },
327        "ReadCase14": {
328            "Read": [
329                {
330                    "LockFlag": "DontLock",
331                    "SegmentLength": 7
332                },
333                {
334                    "LockFlag": "LockAll",
335                    "SegmentLength": 1
336                }
337            ]
338        },
339        "ReadCase15": {
340            "Read": [
341                {
342                    "LockFlag": "DontLock",
343                    "SegmentLength": "3"
344                },
345                {
346                    "LockFlag": "LockAll",
347                    "SegmentLength": 1
348                }
349            ]
350        },
351        "ReadCase16": {
352            "Read": [
353                {
354                    "LockFlag": "DontLock",
355                    "SegmentLength": 3
356                },
357                {
358                    "LockFlag": "LockAll",
359                    "SegmentLength": "1"
360                }
361            ]
362        },
363        "ReadCase17": {
364            "Read": [
365                {
366                    "LockFlag": "DontLock",
367                    "SegmentLength": "Three"
368                },
369                {
370                    "LockFlag": "LockAll",
371                    "SegmentLength": 1
372                }
373            ]
374        },
375        "ReadCase18": {
376            "Read": [
377                {
378                    "LockFlag": "DontLock",
379                    "SegmentLength": 3
380                },
381                {
382                    "LockFlag": "LockAll",
383                    "SegmentLength": "One"
384                }
385            ]
386        },
387        "WriteCase1": {
388            "write": [
389                {
390                    "LockFlag": "DontLock",
391                    "SegmentLength": 3
392                },
393                {
394                    "LockFlag": "LockSame",
395                    "SegmentLength": 1
396                }
397            ]
398        },
399        "WriteCase2": {
400            "WRITE": [
401                {
402                    "LockFlag": "DontLock",
403                    "SegmentLength": 3
404                },
405                {
406                    "LockFlag": "LockSame",
407                    "SegmentLength": 1
408                }
409            ]
410        },
411        "WriteCase3": {
412            "*Write": [
413                {
414                    "LockFlag": "DontLock",
415                    "SegmentLength": 3
416                },
417                {
418                    "LockFlag": "LockSame",
419                    "SegmentLength": 1
420                }
421            ]
422        },
423        "WriteCase4": {
424            "Wrte": [
425                {
426                    "LockFlag": "DontLock",
427                    "SegmentLength": 3
428                },
429                {
430                    "LockFlag": "LockSame",
431                    "SegmentLength": 1
432                }
433            ]
434        },
435        "WriteCase5": {
436            "WritE": [
437                {
438                    "LockFlag": "DontLock",
439                    "SegmentLength": 3
440                },
441                {
442                    "LockFlag": "LockSame",
443                    "SegmentLength": 1
444                }
445            ]
446        },
447        "WriteCase6": {
448            "Write": [
449                {
450                    "LockFlag": "lockall",
451                    "SegmentLength": 1
452                }
453            ]
454        },
455        "WriteCase7": {
456            "Write": [
457                {
458                    "LockFlag": "DontLock",
459                    "SegmentLength": 3
460                },
461                {
462                    "LockFlag": "locksame",
463                    "SegmentLength": 1
464                }
465            ]
466        },
467        "WriteCase8": {
468            "Write": [
469                {
470                    "LockFlag": "dontlock",
471                    "SegmentLength": 3
472                },
473                {
474                    "LockFlag": "locksame",
475                    "SegmentLength": 1
476                }
477            ]
478        },
479        "WriteCase9": {
480            "Write": [
481                {
482                    "LockFlag": "ontLock",
483                    "SegmentLength": 3
484                },
485                {
486                    "LockFlag": "LockAll",
487                    "SegmentLength": 1
488                }
489            ]
490        },
491        "WriteCase10": {
492            "Write": [
493                {
494                    "LockFlag": "*DontLock",
495                    "SegmentLength": 3
496                },
497                {
498                    "LockFlag": "LockAll",
499                    "SegmentLength": 1
500                }
501            ]
502        },
503        "WriteCase11": {
504            "Write": [
505                {
506                    "LockFlag": "dontlock",
507                    "SegmentLength": 3
508                },
509                {
510                    "LockFlag": "lockall",
511                    "SegmentLength": 1
512                }
513            ]
514        },
515        "WriteCase12": {
516            "Write": [
517                {
518                    "LockFlag": "DontLock",
519                    "SegmentLength": 7
520                },
521                {
522                    "LockFlag": "LockAll",
523                    "SegmentLength": 0
524                }
525            ]
526        },
527        "WriteCase13": {
528            "Write": [
529                {
530                    "LockFlag": "DontLock",
531                    "SegmentLength": 3
532                },
533                {
534                    "LockFlag": "LockAll",
535                    "SegmentLength": 0
536                }
537            ]
538        },
539        "WriteCase14": {
540            "Write": [
541                {
542                    "LockFlag": "DontLock",
543                    "SegmentLength": 7
544                },
545                {
546                    "LockFlag": "LockAll",
547                    "SegmentLength": 1
548                }
549            ]
550        },
551        "WriteCase15": {
552            "Write": [
553                {
554                    "LockFlag": "DontLock",
555                    "SegmentLength": "3"
556                },
557                {
558                    "LockFlag": "LockAll",
559                    "SegmentLength": 1
560                }
561            ]
562        },
563        "WriteCase16": {
564            "Write": [
565                {
566                    "LockFlag": "DontLock",
567                    "SegmentLength": 3
568                },
569                {
570                    "LockFlag": "LockAll",
571                    "SegmentLength": "1"
572                }
573            ]
574        },
575        "WriteCase17": {
576            "Write": [
577                {
578                    "LockFlag": "DontLock",
579                    "SegmentLength": "Three"
580                },
581                {
582                    "LockFlag": "LockAll",
583                    "SegmentLength": 1
584                }
585            ]
586        },
587        "WriteCase18": {
588            "Write": [
589                {
590                    "LockFlag": "DontLock",
591                    "SegmentLength": 3
592                },
593                {
594                    "LockFlag": "LockAll",
595                    "SegmentLength": "One"
596                }
597            ]
598        }
599    }
600}
601