[xsd-users] getFoo, get_foo, foo() and setFoo, set_foo, foo(f)

Boris Kolpackov boris at codesynthesis.com
Fri Feb 23 12:18:22 EST 2007


Hi Ray,

Ray Lischner <rlischner at proteus-technologies.com> writes:

> Our local style guide says we need call setters setName(x) and
> getters getName() instead of name(x) and name().
>
> How feasible is it to add to xsd some user-configurability of
> member function names?

We were thinking about something like this but for mangling schema
type names. The idea was to provide an option with which one can
specify a regex that is used to transform names. Another option
would allow one to select from a set of predefined styles (e.g.,
smalltalk, stdcxx, and camelcase or something along these lines).

I guess it would also make sense to do the same for accessors
and modifiers. It is a bit easier with types because we already
have a special pass over the semantic graph that checks for
name clashes and assigns names. With function names we will
need to still add this infrastructure (it is partially there
but does not distinguish between accessors and modifiers).

I can give this a shot in a couple of weeks.


hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070223/5d8ee534/attachment.pgp


More information about the xsd-users mailing list