Source |
CodingSec |
Identifiant |
5015 |
Date de publication |
2016-07-31 16:00:15 (vue: 2016-07-31 16:00:15) |
Titre |
How builder pattern works |
Texte |
Intent: Separate the construction of a complex object from its representation so that the same construction process can create different representations. Motivation: A RTF (Rich Text Format) reader application should be able to convert a RTF document to several formats like: plain text or TeX representation or into a text widget which allows users to directly interact. The problem here is, the number of possible conversions is open ended. So, it should be easy to add a new conversion without modifying the reader. A solution to this problem is, the RTFReader class uses a TextConverter object that converts RTF |
Envoyé |
Oui |
Condensat |
able add allows appeared application builder can class coding complex construction conversion conversions convert converts create different directly document easy ended first format formats from here how intent: interact its like: modifying motivation: new number object open pattern plain possible post problem process reader representation representations rich rtf rtfreader same security separate several should solution tex text textconverter users uses which widget without works |
Tags |
|
Stories |
|
Notes |
|
Move |
|