Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 76691 invoked by uid 500); 23 Jan 2002 17:53:06 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 76682 invoked by uid 500); 23 Jan 2002 17:53:06 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 23 Jan 2002 17:53:05 -0000 Message-ID: <20020123175305.84440.qmail@icarus.apache.org> From: butek@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaDeployWriter.java JavaTypeWriter.java SymbolTable.java TypeEntry.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N butek 02/01/23 09:53:05 Modified: java/src/org/apache/axis/wsdl/toJava JavaDeployWriter.java JavaTypeWriter.java SymbolTable.java TypeEntry.java Log: In SymbolTable.java, Tom asked: // turn off generation of the element type // XXX is there a better way to do this? Hopefully this is the better way. Instead of removing the type from the symbol table to turn off generation, I've added a new flag to TypeEntry - isOnlyLiteralReferenced - so the generators can query the status of this flag to decide whether or not to generate the type. In other words, if it is referenced, but it is ONLY referenced as a literal type, then don't generate it. Revision Changes Path 1.11 +1 -0 xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaDeployWriter.java Index: JavaDeployWriter.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaDeployWriter.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- JavaDeployWriter.java 18 Jan 2002 20:11:36 -0000 1.10 +++ JavaDeployWriter.java 23 Jan 2002 17:53:05 -0000 1.11 @@ -148,6 +148,7 @@ for (int i = 0; i < types.size(); ++i) { TypeEntry type = (TypeEntry) types.elementAt(i); if (type.getBaseType() == null && type.isReferenced() + && !type.isOnlyLiteralReferenced() && !type.getName().endsWith("[]")) { pw.println("