Subject: [Topia-commits] r1329 - topia/trunk/topia-soa/src/main/java/org/codelutin/topia/generator
From: [email-masked]
To: [email-masked]
Date: Thu, 29 Jan 2009 12:22:36 +0100 (CET)
List-Id: <topia-commits.lists.labs.libre-entreprise.org>

Author: chatellier
Date: 2009-01-29 11:22:36 +0000 (Thu, 29 Jan 2009)
New Revision: 1329

Modified:
   topia/trunk/topia-soa/src/main/java/org/codelutin/topia/generator/ServiceInterfaceGenerator.java
Log:
Correction de la doc

Modified: topia/trunk/topia-soa/src/main/java/org/codelutin/topia/generator/ServiceInterfaceGenerator.java
===================================================================
--- topia/trunk/topia-soa/src/main/java/org/codelutin/topia/generator/ServiceInterfaceGenerator.java	2009-01-29 11:18:00 UTC (rev 1328)
+++ topia/trunk/topia-soa/src/main/java/org/codelutin/topia/generator/ServiceInterfaceGenerator.java	2009-01-29 11:22:36 UTC (rev 1329)
@@ -128,7 +128,7 @@
     	}
 /*{    }; }*/
 /*{		 
-   } //<%=interfacez.getName()%>
+} //<%=interfacez.getName()%>
 }*/
     }
 
@@ -181,7 +181,7 @@
     private void generateMethodsGetter(Writer output, ObjectModelClassifier classifier) throws IOException {
 /*{    public abstract String[] getMethods();
 
-	// =====> methodes utilisant celles des entites <====
+	// methodes utilisant celles des entites
 }*/ 	
     }
     
@@ -193,7 +193,7 @@
             String method = op.getReturnType()+ " "+op.getName()+"(";
 /*{
     /** 
-     * Methode metier
+     * Methode <%=op.getName()%>.
 }*/
             if (GeneratorUtil.hasDocumentation(op)) {
 /*{     * <%=op.getName()%> : <%=op.getDocumentation()%>
@@ -201,15 +201,19 @@
             }
             Collection<ObjectModelParameter> params = (Collection<ObjectModelParameter>)op.getParameters();
             for(ObjectModelParameter param : params) {
-                if(log.isTraceEnabled()) {log.trace("Param" + param);}
+                if(log.isTraceEnabled()) {
+                    log.trace("Param" + param);
+                }
+                if (GeneratorUtil.hasDocumentation(param)) {
 /*{     * @param <%=param.getName()%> <%=param.getDocumentation()%>
-}*/ 
+}*/
+                }
             }
 /*{     *)
     <%=op.getVisibility()%> <%=op.getReturnType()%> <%=op.getName()%>(}*/
             String vir = "";
             for(ObjectModelParameter param : params){
-                method += " " + param.getType()+" "+param.getName();
+                method += vir + param.getType()+" "+param.getName();
                 if(log.isTraceEnabled()) {log.trace("Param" + param + " vir" + vir);}
 /*{<%=vir%><%=param.getType()%> <%=param.getName()%>}*/
                 vir = ", ";
@@ -232,7 +236,7 @@
     
     private void generateInheritedInterfaceOperations(Writer output, ObjectModelClassifier classifier) throws IOException {
 /*{
-	// =====> methodes utilisant celles des daos <==== 
+	// methodes utilisant celles des daos
 }*/    	
         for (Iterator i=classifier.getInterfaces().iterator(); i.hasNext();) {
             ObjectModelClassifier parent = (ObjectModelClassifier)i.next();
@@ -648,7 +652,7 @@
             String vir = "";
             for(ObjectModelParameter param : params){
                 if(log.isTraceEnabled()) {log.trace("Param" + param + " vir" + vir);}
-                method += " " + param.getType()+" "+param.getName();
+                method += vir + param.getType()+" "+param.getName();
 /*{<%=vir%><%=param.getType()%> <%=param.getName()%>}*/
                 vir = ", ";
             }

_______________________________________________
Topia-commits mailing list
[email-masked]
https://lists.labs.libre-entreprise.org/mailman/listinfo/topia-commits