FormatNumberTag

2009-07-08 Thread Stuart Thiel
protected, instead of private, I could simply wrap it up and extend it in a few lines of code and let polymorphism do its thing. As it stands, I'll need to duplicate most of the code from FormatNumberSupport. -- Stuart Thiel

Re: FormatNumberTag

2009-07-10 Thread Stuart Thiel
to the NumberFormat. A similar reconfigureFormatter(DateFormat) could be added to the FormatDateSupport class. What do you think? -- Stuart Thiel

Re: FormatNumberTag

2009-07-11 Thread Stuart Thiel
Hello Henri, Yes, that would solve my immediate problem. It is a bit of a one-off hack, though. The follow-through would be to take a look at all the classes and identify areas where hooks like that would be desirable. It is perhaps a difference in philosophies of programming, but my

Re: FormatNumberTag

2009-07-11 Thread Stuart Thiel
Hello Rusty, I don't have the mentioned book, but I quickly found the article: http://www.objectmentor.com/resources/articles/ocp.pdf I'm afraid that such is not my interpretation of that article at all. It seems to clearly suggest that an inviolate superclass, that can be subclassed (what I