java


Alternative to a map of map of map when parsing a YAML file in a Java 1.8 program


I am currently working on a Java program which needs to read a YAML file through jackson, and play tests which correspond to what is written in the file. A test case is divided in one or several test cases:
case_list:
1: # Test Case 1
0: # Test sub-case 1.0
functions: # list of tests
- "R1{1;'T'}"
then: null # if the tests are true, then reads "result"
else: 1 # else, go to sub-case 1.1
result: "AAA" #returns "AAA"
1: #Test sub-case 1.1
functions:
- "R5{1000;10000}"
then: 3
else: 2
result: null
2:
functions:
- "R5{10000}"
then: 0 # go to the next test case (2.0)
else: null
resultat: "CCC"
3:
functions:
- "R3{'A'}"
- "R4{'75001'}"
then: null
else: 0
result: "BBB"
2: # Test Case 2
...
When parsing the YAML file into an object, the tests are stored in a map of map of map:
private Map<String, Map<String, Map<String, Object>>> case_list;
I can have the program navigate inside the maps and do what it needs to do, but I would rather use an easier to read (and easier to use) alternative.
Do you know about such an alternative, and the ways to implement them, if they exist?
Thank you in advance.

Related Links

How to put a button texture on another texture?
In Java, can you use negative one with substring? [closed]
Resizing image with libgdx
Libgdx serialization
ArrayOutOfBounds exception when trying to parse Double to String
Can methods be referred to as functions in comments [closed]
Positioning button on the TableActivity from the code
Infinispan Clustering applications on 2 servers
How to use a random array number and a timer in java?
How can I write a method to intersperse two arrays of different lengths?
Returning null values in DAO file
Using foreach loop in JSF
How to send message using SMACK API and GTALK?
LDAP search bootstrap example
Unable To Increase UrlImageView Size! (Android)
How to make custom ListView to open other activities when clicking list item?

Categories

HOME
hook
yarn
graphql
electronics
win32gui
fsm
callback
cross-browser
opengl-es-2.0
azure-storage-tables
uber-api
google-cloud-spanner
php-7.1
orchardcms
event-handling
uitypeeditor
highlight.js
footer
undefined
oxyplot
custom-wordpress-pages
xlsxwriter
restful-authentication
autosys
vlsi
semantic-analysis
tooltipster
social-media
replaceall
objectanimator
create-table
scorm2004
typed.js
perlin-noise
commit
accelerate-framework
suricata
space-complexity
unspecified
xenforo
broadcastreceiver
ibpy
angular-resource
avconv
flickr-api
scrollable
pnotify
datastax-startup
iso8601
query-performance
clang-static-analyzer
testng-dataprovider
qgraphicsview
python-stackless
tform
phpcas
javax.sound.midi
google-places
coveralls
ionic
event-bubbling
apache-commons-fileupload
generic-programming
directoryservices
qpainter
coldbox
file-copying
fpml
titanium-modules
websocket4net
dml
p4java
wp-query
hippomocks
mcts
commoncrypto
dexterity
blending
coverflow
ruby-datamapper
gridcontrol
path-separator
unc
rdoc
labwindows
cufon
nsdatecomponents
jmock
dentrix
yagni
nerddinner

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App