Converting java classes to table

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

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

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

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads