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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download