User: reverbel
  Date: 01/10/30 04:26:05

  Modified:    iiop/src/main/org/jboss/iiop/rmi AttributeAnalysis.java
  Log:
  Converting to lower case the first character of an attribute name unless both
  the first and second characters are upper case.
  
  Revision  Changes    Path
  1.3       +10 -1     contrib/iiop/src/main/org/jboss/iiop/rmi/AttributeAnalysis.java
  
  Index: AttributeAnalysis.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/iiop/src/main/org/jboss/iiop/rmi/AttributeAnalysis.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AttributeAnalysis.java    2001/08/08 20:19:39     1.2
  +++ AttributeAnalysis.java    2001/10/30 12:26:05     1.3
  @@ -20,7 +20,7 @@
    *  Specification", version 1.1 (01-06-07).
    *      
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Ole Husgaard</a>
  - *  @version $Revision: 1.2 $
  + *  @version $Revision: 1.3 $
    */
   public class AttributeAnalysis
      extends AbstractAnalysis
  @@ -138,6 +138,15 @@
      void setIDLName(String idlName)
      {
         super.setIDLName(idlName);
  +
  +      // If the first char is an uppercase letter and the second char is not
  +      // an uppercase letter, then convert the first char to lowercase.
  +      if (idlName.charAt(0) >= 0x41 && idlName.charAt(0) <= 0x5a 
  +       && (idlName.length() <= 1
  +           || idlName.charAt(1) < 0x41 || idlName.charAt(1) > 0x5a)) {
  +      idlName = 
  +         idlName.substring(0, 1).toLowerCase() + idlName.substring(1);
  +      }
   
         if (accessorAnalysis != null)
            accessorAnalysis.setIDLName("_get_" + idlName);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to