incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r797118 - in /incubator/kato/trunk/org.apache.kato/kato.anttasks: src/main/java/org/apache/kato/anttasks/xmlgen/XMLWriter.java target/
Date Thu, 23 Jul 2009 15:54:01 GMT
Author: spoole
Date: Thu Jul 23 15:54:01 2009
New Revision: 797118

URL: http://svn.apache.org/viewvc?rev=797118&view=rev
Log:
more xmldoc data exposure

Modified:
    incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLWriter.java
    incubator/kato/trunk/org.apache.kato/kato.anttasks/target/   (props changed)

Modified: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLWriter.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLWriter.java?rev=797118&r1=797117&r2=797118&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLWriter.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLWriter.java
Thu Jul 23 15:54:01 2009
@@ -114,6 +114,8 @@
 		writeSummary(m.firstSentenceTags());
 		writeComment(m.commentText());
 		
+		Tag[] returnTags=m.tags("return");
+		writeReturnTags(returnTags);
 		
 		SeeTag[] seetags=m.seeTags();
 		writeSeeTags(seetags);
@@ -121,6 +123,14 @@
 		write("</method>");
 		
 	}
+	private void writeReturnTags(Tag[] returnTags) throws IOException {
+		if(returnTags==null || returnTags.length==0) return; // nothing to do
+		write("<returns>");
+		for(Tag t:returnTags) {
+			writeHTMLText("return",t.text());
+		}
+		write("</returns>");
+	}
 	private void writeSeeTags(SeeTag[] seetags) {
 		if(seetags==null || seetags.length==0) return;
 		write("<seerefs>");
@@ -146,12 +156,11 @@
 	}
 	private void write(ParamTag p) {
 		String name=p.parameterName();
-		
-		String comment=p.parameterComment();
-		if(comment==null || comment.trim().equals("")) return;
-		
 		write("<paramdesc name=\""+name+"\">");
-		write(p.parameterComment());
+		String comment=p.parameterComment();
+		if(comment==null ) {
+			write(comment);
+		}
 		write("</paramdesc>");
 	}
 	private void write(Parameter[] parameters) {
@@ -266,6 +275,10 @@
 		if(name.equals("H3")) name="db:sect4";
 		if(name.equals("H4")) name="db:sect5";
 		if(name.equals("P")) name="db:para";
+		if(name.equals("TABLE")) name="db:informaltable";
+		if(name.equals("TR")) name="db:row";
+		if(name.equals("TD")) name="db:entry";
+		if(name.equals("TH")) name="db:thead";
 		if(name.equals("UL")) name="db:itemizedlist";
 		if(name.equals("OL")) name="db:orderedlist";
 		if(name.equals("LI")) name="db:listitem"; 

Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/target/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Jul 23 15:54:01 2009
@@ -0,0 +1 @@
+kato.anttasks-0.0.1-SNAPSHOT.jar



Mime
View raw message