A design for document creation

Hi All,

I am working on a project which needs documents to be created. Currently we create 5 documents(pdf files). I would like to create a design so that tomorrow if there is need of creating new documents I can create them easily without much code changes.

The documents format may be different. Has anyone does any such project. Any help/ guidance will be greatly appreciated.

Thanks

[412 byte] By [vislavtia] at [2007-10-3 6:12:23]
# 1

Presumably you mean the actual report rather than the packaging of the report (in pdf.) Usually that doesn't work.

A month end report is significantly different than a daily report. A summary report is significantly different than a detail report.

There are similarities but there are more differences than similarities and often even the similarities are actually different (so one ends up with conditional code based on report type.)

But if you want you just break out the pieces that are the same and create helper classes and base classes.

jschella at 2007-7-15 0:56:09 > top of Java-index,Other Topics,Patterns & OO Design...