What pattern should I use to process reports into an infrastructure to allow various representations? -
Just start learning the patterns I have a simple question.
I have an object report containing page s, each of which has different reportElement s ( Table , paragraphs , image ) and so on. Suppose I want to build a basic framework for taking the report and want to impose the various representations of this code such as RTF-formatted documents, a text formatted document, an HTML document, etc. .
Which design pattern am I looking for here?
I believe
you get an RTFReportGenerator, a HtmlReportGenerator, etc. Can create ... all who apply the same 'IReportGenerator' interface, but each concrete class implements the 'WriteReport (report r)' method in a different way. / P>
Comments
Post a Comment