Hi,
is there a common way of organizing the sourcecode if you have a lot of different chapters?

Is it possible to do smth. like this:

class Introduction extends Chapter {
    @Override  
    public void ??proccesss??() {
        // now i add new Paragraps images and stuff here
    }
}


class Abstract extends Chapter {
    @Override  
    public void ??proccesss??() {
        // now i add new Paragraps images and stuff here
    }   
}

And then finally i wire up everything like this:


class MyFanceReportGenerator {

    public Document generate(/* the configuration goes here */) {

        // generate document
        document.add(new Introduction(...));
        document.add(new Abstract(...));
        // ...
    }
}

Best Regards,
Christian.