Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 88265 invoked from network); 21 Feb 2003 18:55:20 -0000 Received: from amcuxfw803.amc.af.mil (HELO fw3.amc.af.mil) (131.9.254.187) by daedalus.apache.org with SMTP; 21 Feb 2003 18:55:20 -0000 Received: from fw3.amc.af.mil (root@localhost) by fw3.amc.af.mil with ESMTP id h1LIoxi29915 for ; Fri, 21 Feb 2003 12:51:00 -0600 (CST) Received: from amcw2av808.amc.ds.af.mil (amcw2av808.amc.af.mil [131.9.19.137]) by fw3.amc.af.mil with SMTP id h1LIouI29850 for ; Fri, 21 Feb 2003 12:50:57 -0600 (CST) Received: from amcw2ms872.amc.ds.af.mil ([131.9.25.137]) by amcw2av808.amc.ds.af.mil (NAVGW 2.5.2.17) with SMTP id M2003022112551410826 for ; Fri, 21 Feb 2003 12:55:14 -0600 Received: from amcw2ms812.amc.ds.af.mil ([131.9.19.76]) by amcw2ms872.amc.ds.af.mil with Microsoft SMTPSVC(5.0.2195.5329); Fri, 21 Feb 2003 12:55:15 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.0.6334.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [Digester] SetPropertiesRule Date: Fri, 21 Feb 2003 12:55:14 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Digester] SetPropertiesRule Thread-Index: AcLXfpr6s5qC0BKKRw6829Oft8TRLgCWDKTg From: "Durham David Cntr 805CSS/SCBE" To: "Jakarta Commons Users List" X-OriginalArrivalTime: 21 Feb 2003 18:55:15.0151 (UTC) FILETIME=[C507B5F0:01C2D9DA] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N First off, I'll clarify the xOffset property name problem. For those = that already know what it is, you can skip this section. A property or attribute in the form of first letter lower case and = second letter capitalized will not map to a javabean method. This is = because the expected method name with both letters capitalized is = supposed to map to a property with the same name of the method, i.e. = getXOffset() will map to the XOffset property and there is no method = name that will map to the xOffSet property. Craig wrote: > > > > > > No, it's not. Welcome to the wonderful world of the > > > JavaBeans rules on > > > converting property names to getter and setter method names. To me it seems that this is more appropriately phrased welcome to the = world of converting getter and setter method names to property names, = because that's what you have to do to make sure property names are = valid. This is fine if that's the way Sun wants it, but I don't agree = with limiting the set of property names if it can be accomplished = without doing so. Perhaps the spec should just say use an underscore = notation like get_propertyName and leave the property name the same. =20 This will be particularly problematic if the javabean author can not = change the property names set. For instance, let's say that I'm = receiving an XML document from a bank that has lot's of other systems = that also need this XML document. Changing the XML doc to work with the = Javabeans technology is cost prohibitive so the solution is don't use = Javabeans. Not exactly what Sun had in mind when they created it. > > > > > > The details of the naming patterns are in the JavaBeans=20 > Specification, > > > which you can get from: > > > > > > http://java.sun.com/products/javabeans/ I want to say, who gives a crap about what naming conventions = programmers are most comfortable with? Designs are not about creating = easy to read code although they often have that effect, they are about = creating something that works. This spec doesn't work IMHO. > > > > > > Craig > > > Dave