• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Help using patterns  RSS feed

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!