axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaGeneratorFactory.java
Date Fri, 19 Dec 2003 14:59:26 GMT
ias         2003/12/19 06:59:26

  Modified:    java/src/org/apache/axis/wsdl/toJava
                        JavaGeneratorFactory.java
  Log:
  Updated javifyTypeEntryName to consider <xsd:list itemType>
  
  Revision  Changes    Path
  1.44      +7 -0      ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java
  
  Index: JavaGeneratorFactory.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- JavaGeneratorFactory.java	19 Dec 2003 08:59:24 -0000	1.43
  +++ JavaGeneratorFactory.java	19 Dec 2003 14:59:25 -0000	1.44
  @@ -576,6 +576,13 @@
               // is will be used to javify the name
               QName typeQName = tEntry.getQName();
               
  +            // In case of <xsd:list itemType="...">, 
  +            // set typeQName to the value of the itemType attribute.
  +            QName itemType = SchemaUtils.getListItemType(tEntry.getNode());
  +            if (itemType != null) {
  +                typeQName = itemType;
  +            }
  +            
               if ((typeQName.getLocalPart().
                       indexOf(SymbolTable.ANON_TOKEN) < 0)) {
                   // Normal Case: The ref'd type is not anonymous
  
  
  

Mime
View raw message