adding a property to switch trimming on and off sounds like it might lead to later problems with extensibility. you need to switch on and off trimming. other people may want to normalize whitespace by (say) replacing concurrent sequences of whitespace with a single space. maybe we could add a strategy interface which rules could call to pre-process the body text and then create a default implementation that would call trim.

comments anyone?

- robert

On Monday, July 7, 2003, at 11:27 PM, Juergen Weber wrote:

You will need to write your own Rule implementation in order to do this.

For which Rule? I did not find a way to extend the built-in behavour in order to not have called trim().


A call to String.trim() is in
CallParamRule.java, CallMethodRule.java, BeanPropertySetterRule.java and NodeCreateRule.java


As I understand, to remove the trim() behaviour, I'd have to replace (and not extend) the built-in Rules, which seems wrong.

I think the trim() behaviour should be configurable with a call analogous to setValidating(boolean validating) somethink like setTrimming(boolean)

Greetings,
Juergen

_________________________________________________________________
MSN - More Useful Every Day  http://www.msn.de


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to