Hello,

I'm just taking a quick look at Interpolation.

(1) Does it belong?

I was at first a little surprised to see something so script-like in
[lang]. I guess it does not feel like something that is missing in
java.lang. OTOH, we are just talking about another form of String search
and replace, so it does make sense under that umbrella.

(2) The name Interpolation and interpolate.

I must say that I am a bit turned off by these somewhat mathematical
names. This class is more of String "matcher" or "replacer" thingy. What
does Ant call these things? 

Interpolation.interpolate( templateString, valuesMap );

(3) Usage.

I'd like that class to be more flexible in order to do the following for
example:

Interpolation interpolation = new Interpolation();
interpolation.setStartMarker("<");
interpolation.setEndMarker(">");
interpolation.setMap(aMap);
String news = interpolation.interpolate(templateString);

Cheers,
Gary

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

Reply via email to