You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by Roland Pereira <Pe...@crlcorp.com> on 2004/12/16 15:33:35 UTC

RE: [jira] Created: (XMLBEANS-94) getJavaPropertyName() returns p ropery names starting with uppercase character

 You could try using the toLowerCase method call on the string object
returned. I am not sure if this will help.
But yes you are right. The problem should be resolved at the root.

-----Original Message-----
From: Walter Dorninger (JIRA) [mailto:xmlbeans-dev@xml.apache.org] 
Sent: Thursday, December 16, 2004 7:44 AM
To: xmlbeans-dev@xml.apache.org
Subject: [jira] Created: (XMLBEANS-94) getJavaPropertyName() returns propery
names starting with uppercase character

getJavaPropertyName() returns propery names starting with uppercase
character
----------------------------------------------------------------------------
-

         Key: XMLBEANS-94
         URL: http://nagoya.apache.org/jira/browse/XMLBEANS-94
     Project: XMLBeans
        Type: Bug
  Components: SOM  
    Versions: Version 2    
    Reporter: Walter Dorninger


The method getJavaPropertyName() returns property names with the first
character being uppercase. This I think is wrong because if you use e.g.
apache commons PropertyUtils and try to match a property using the name
retrieved by getJavaPropertyName() it does not work because the Property
names in the PropertyDescriptor generated by PropertyUtils are LOWER case at
the beginning.

e.g.
SchemaProperty[] myProperties =
myXMLBeanObject.schemaType().getProperties();
String A = myProperties[0].getJavaPropertyName();
a has the value "MyProperty"

PropertyUtils.getPropertyDescriptor(myXMLBeanObject, A) --> will never work
because A starts with an upper case character !!!







--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
CONFIDENTIALITY NOTICE: The information in this message, and any attachment,
is intended for the sole use of the individual and entity to whom it is
addressed. This information may be privileged, confidential, and protected
from disclosure. If you are not the intended recipient you are hereby
notified that you have received this communication in error and that any
review, disclosure, dissemination, distribution or copying of it, or its
contents, is strictly prohibited. If you think that you have received this
message in error please notify the sender and destroy all copies of this
communication and any attachments. Thank you.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org