There is no reason to have a toString() transformer. String.valueOf() calls toString().
----- Original Message ----- From: "Stephen Colebourne" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 11:35 AM Subject: Re: [collections] Potential New Additions? > From: <[EMAIL PROTECTED]> > > I have a few classes that I have found useful on numerous projects and > they > > are just general enough that they might be a nice addition to the Commons > > Collections library... > > > > 1. IdentityTransformer - Returns the original object. This is useful for > > frameworks which use a Transformer, but do not wish to perform a null > check. > TransformerUtils.nopTransformer() > > > 2. PropertyValueTransformer - Returns the value of a property. Currently > > uses BeanUtils, but could be migrated to use BeanMap instead. > See [beanutils] recent addition IIRC. > > > 3. StringValueTransformer - Returns the value of String.valueOf(), > passing > > in the original object. > Could have value. Also ToStringTransformer. > > > 4. PropertyValuePredicate - Returns true if the property has a desired > > target value. > Would go to [beanutils] > > > 5. TransformerChain - Implements the Transformer interface and allows you > > to chain together a list of Transformer objects. Transformations are > > applied in the order in which they were added to the chain (similar to > > ComparatorChain). > TransformerUtils.chainedTransformer() > > The TransformerUtils class is in CVS, but not yet released. > > The StringValueOf and ToString transformers would probably be useful if you > want to submit a tested patch :-) > > Stephen > > > --------------------------------------------------------------------- > 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]
