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/fromJava Types.java
Date Fri, 02 Jul 2004 13:17:19 GMT
ias         2004/07/02 06:17:19

  Modified:    java/src/org/apache/axis/wsdl/fromJava Types.java
  Log:
  Handles global attributes more precisely. Now a global attribute is considered roughly the
same as global element by representing Element in entries of SymbolTable.
  
  Revision  Changes    Path
  1.98      +7 -3      ws-axis/java/src/org/apache/axis/wsdl/fromJava/Types.java
  
  Index: Types.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/fromJava/Types.java,v
  retrieving revision 1.97
  retrieving revision 1.98
  diff -u -r1.97 -r1.98
  --- Types.java	22 Jun 2004 18:01:20 -0000	1.97
  +++ Types.java	2 Jul 2004 13:17:19 -0000	1.98
  @@ -1722,8 +1722,8 @@
           // If we've already got this type (because it's a native type or
           // because we've already written it), just add the type="" attribute
           // (if appropriate) and return.
  -        if (!addToTypesList(qName)) {
  -            if (containingElement != null) {
  +        if (!addToTypesList(qName) && !anonymous) {
  +        	if (containingElement != null) {
                   containingElement.setAttribute("type", getQNameString(qName));
               }
   
  @@ -1775,7 +1775,11 @@
           // containingElement to the right QName, and make sure the type is
           // correctly written into the appropriate <schema> element.
           if (anonymous) {
  -            containingElement.appendChild(typeEl);
  +        	if (typeEl == null) {
  +                containingElement.setAttribute("type", getQNameString(getTypeQName(type)));
  +        	} else {
  +                containingElement.appendChild(typeEl);
  +        	}
           } else {
               if (typeEl != null) {
                   typeEl.setAttribute("name", qName.getLocalPart());
  
  
  

Mime
View raw message