I am trying to learn more about patterns and want to build some small application for learning purposes. I want to use Builder and Abstract Factory to create an application that creates different kind of documents like HTML and Markdown. But I don't really understand how to start.
first step is that I need to be able to create elements like paragraphs, headers etc.. and possibly store them in a list.
I understand that I also need to create and decide what kind of document to create.
Would it be best to use a Abstract Factory to create all the elements and then use a builder to create the actual document which accepts a list of elements that can be parsed in the correct way?
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java