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/contrib/j2me/rpc/src/tool/org/apache/axis/j2me/rpc/wsdl/tojava J2meStubWriter.java
Date Thu, 25 Nov 2004 12:58:06 GMT
ias         2004/11/25 04:58:06

  Modified:    contrib/j2me/rpc/src/tool/org/apache/axis/j2me/rpc/wsdl/tojava
                        J2meStubWriter.java
  Log:
  Update to follow the new naming policy of Axis Java.
  
  Revision  Changes    Path
  1.3       +4 -4      ws-axis/contrib/j2me/rpc/src/tool/org/apache/axis/j2me/rpc/wsdl/tojava/J2meStubWriter.java
  
  Index: J2meStubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/j2me/rpc/src/tool/org/apache/axis/j2me/rpc/wsdl/tojava/J2meStubWriter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- J2meStubWriter.java	17 Feb 2004 08:49:11 -0000	1.2
  +++ J2meStubWriter.java	25 Nov 2004 12:58:06 -0000	1.3
  @@ -554,7 +554,7 @@
               for (int j = 0; j < typeSizes; j++) {
                   ElementDecl elem = (ElementDecl) vTypes.elementAt(j);
                   String componentId = typeId + j;
  -                writeElement(pw, elem.getName(), componentId, elem.getType());
  +                writeElement(pw, elem.getQName(), componentId, elem.getType());
                   pw.println("       " + typeId + ".elements[" + j + "] = " + componentId
+ ";");
               }
               pw.println("        javax.microedition.xml.rpc.Element " + id);
  @@ -699,7 +699,7 @@
   					for (int k = 0; k < components.size(); k++) {
   						ElementDecl elem = (ElementDecl) components.elementAt(k);
   						String componentName = compositeName + k;
  -						String fieldName = Utils.xmlNameToJava(Utils.getLastLocalPart(elem.getName().getLocalPart()));
  +						String fieldName = elem.getName();
   						writeDecoding(pw, componentName, compositeName + "[" + k + "]", elem.getType());
   						faultParamList += componentName;
   						if (k < components.size() - 1) {
  @@ -769,7 +769,7 @@
               for (int j = 0; j < typeSizes; j++) {
                   ElementDecl elem = (ElementDecl) vTypes.elementAt(j);
                   String componentId = id + j;
  -                String fieldName = Utils.xmlNameToJava(Utils.getLastLocalPart(elem.getName().getLocalPart()));
  +                String fieldName = elem.getName();
                   String getterName = "get" +Utils.capitalizeFirstChar(fieldName) + "()";
                   writeEncoding(pw, name + "." + getterName, componentId, elem.getType());
                   pw.println("       " + id + "[" + j + "] = " + componentId + ";");
  @@ -826,7 +826,7 @@
               for (int j = 0; j < typeSizes; j++) {
                   ElementDecl elem = (ElementDecl) vTypes.elementAt(j);
                   String componentName = compositeName + j;
  -                String fieldName = Utils.xmlNameToJava(Utils.getLastLocalPart(elem.getName().getLocalPart()));
  +                String fieldName = elem.getName();
                   String setterName = "set" +Utils.capitalizeFirstChar(fieldName);
                   writeDecoding(pw, componentName, compositeName + "[" + j + "]", elem.getType());
                   pw.println("       " + name + "." + setterName + "(" + componentName +
");");
  
  
  

Mime
View raw message