Converting java classes to table

Highlighted
Four Stars

Converting java classes to table

Hey there,

I'm struggling to find out the best way to extract the hierarchy information from the following java file (see attachement) and to write it into a csv in table form:

 

Group A {
Description_short = "Group A"
Description_long = "Group A"
Type = Main

Form a {
Description_short = "Form a"
Description_long = "Form a"

Position a1 {
Description_short = "Position a1"
Description_long = "Position a1"
Rule {
Reference X.XX.XXX
}
}
Position a2 {
Description_short = "Position a2"
Description_long = "Position a2"
Rule {
Reference X.XX.XXX
}
}
}

Form b {
Description_short = "Form b"
Description_long = "Form b"

Position b1 {
Description_short = "Position b1"
Description_long = "Position b1"
Rule {
Reference X.XX.XXX
}
}
Position b2 {
Description_short = "Position b2"
Description_long = "Position b2"
Rule {
Reference X.XX.XXX
}
}
}
}

I'd like to write it into a column layout like this:

Group Description_long Form Form Description_short  Form Description_long Position Position Description_short  Position Description_long
Group A a Form a Form a a1 Postion a Postion a
Group A a Form a Form a a2 Postion a Postion a
Group A b Form b Form b b1 Postion b Postion b
Group A b Form b Form b b2 Postion b Postion b

 

Thanks in advance for your help!

Regards

connecto

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog