|
From: Sandro M. <naa...@gm...> - 2006-02-06 22:23:45
|
On 2/6/06, Tyler Close <tyl...@gm...> wrote: > > On 2/6/06, Sandro Magi <naa...@gm...> wrote: > > I notice that "getGreeting()" has been translated to simply "greeting". > Do > > you impose a naming convention on Java classes in order to enforce this= , > eg. > > all methods starting with "get" will have that prefix removed? > > The server uses Java Bean naming conventions to determine which > methods are actually property accessors and which are methods. > Anything starting with a "get" and having no parameters is assumed to > be a property accessor. The rules are implemented in > org.waterken.web.instance.Name. > > I think I'll move this class and org.waterken.web.field.Namespace into > the org.waterken.web package to make them easier to find. I haven't ported this code over yet, so I'm just not very familiar with it. C#/.NET doesn't follow this convention so I didn't want to do a straight port; .NET provides explicit property getters/setters, so this behaviour will have to be customized somewhat. Sandro |