Re: naming conventions

From: P.Hill (goodhill.REMOVE_at_xmissionREMOVE.com)
Date: 06/30/04


Date: Tue, 29 Jun 2004 16:21:48 -0700

Alexandr Molochnikov wrote:

>>2. sucking data out of GUI components, and validating it.
>
>
> Getter methods. For JComponent this would be getText(). Again, for
> generality reasons, one can use getValue() that returns an Object, like Date
> or Boolean, or getInteger(), getDouble() etc. for primitives.
>

I think Roedy may have been asking about name of the controller method which
calls the getters and does the validation, not the name of the getter.

-Paul



Relevant Pages

  • Re: Reason for Accessor Methods
    ... I think that you're confusing properties with fields. ... for reasons why you would prefer to write this: ... where Something is a property with a getter. ... it's preferable to expose properties rather than expose ...
    (microsoft.public.dotnet.languages.csharp)
  • adding a method and a variable with BCEL
    ... I need to add a variable and a getter (i.e. getValue) to ... The example code in the distribution package showed ... only how to modify existing methods. ...
    (comp.lang.java.programmer)