Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-qtags/src/main/java/org/xdoclet/plugin/qtags/doclipse
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21143/src/main/java/org/xdoclet/plugin/qtags/doclipse
Modified Files:
QTagDoclipsePlugin.java
Log Message:
Reformating with Jalopy
Index: QTagDoclipsePlugin.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-qtags/src/main/java/org/xdoclet/plugin/qtags/doclipse/QTagDoclipsePlugin.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** QTagDoclipsePlugin.java 16 Jan 2005 19:21:44 -0000 1.2
--- QTagDoclipsePlugin.java 31 May 2005 11:28:56 -0000 1.3
***************
*** 1,2 ****
--- 1,7 ----
+ /*
+ * Copyright (c) 2003
+ * XDoclet Team
+ * All rights reserved.
+ */
package org.xdoclet.plugin.qtags.doclipse;
***************
*** 4,8 ****
--- 9,15 ----
import org.generama.QDoxCapableMetadataProvider;
import org.generama.WriterMapper;
+
import org.xdoclet.plugin.qtags.AbstractQTagsPlugin;
+
import com.thoughtworks.qdox.model.DocletTag;
import com.thoughtworks.qdox.model.JavaClass;
***************
*** 15,71 ****
* @version $Revision$
*/
-
public class QTagDoclipsePlugin extends AbstractQTagsPlugin {
-
public QTagDoclipsePlugin(JellyTemplateEngine jellyTemplateEngine,
QDoxCapableMetadataProvider metadataProvider,
! WriterMapper writerMapper) {
super(jellyTemplateEngine, metadataProvider, writerMapper);
-
setFilereplace("defintion.xml");
setMultioutput(false);
}
!
!
! public boolean shouldGenerate(Object metadata) {
! return qTagUtils.shouldGenerate(metadata);
}
/**
! * provide target specification ( comma separated )
* @param metadata to process
* @return
*/
public String getTarget(JavaClass clazz) {
! DocletTag[] tags = clazz.getTagsByName("qtags.location");
! StringBuffer target = new StringBuffer();
! for(int i = 0; i < tags.length; i++) {
! target.append(tags[i].getValue());
! if(i < tags.length - 1) {
! target.append(' ');
! }
! }
! return target.toString();
}
! /**
! * compile list of allowed values
! * @param method to be searcher for allowed values
! * @return comma separated list of allowed values or null
! */
! public String getAllowedValues(JavaMethod method) {
! if(method.getReturns().getValue() == "boolean" ||
method.getReturns().isA(new Type("java.lang.Boolean"))) {
! return "true false";
! }
! if(method.getTagByName("qtags.allowed-value") == null) {
! return null;
! }
! StringBuffer allowed = new StringBuffer();
! DocletTag[] tags = method.getTagsByName("qtags.allowed-value");
! for(int i = 0; i < tags.length; i++) {
! allowed.append(tags[i].getValue());
! if(i < tags.length - 1) {
! allowed.append(' ');
! }
! }
! return allowed.toString();
}
}
\ No newline at end of file
--- 22,83 ----
* @version $Revision$
*/
public class QTagDoclipsePlugin extends AbstractQTagsPlugin {
public QTagDoclipsePlugin(JellyTemplateEngine jellyTemplateEngine,
QDoxCapableMetadataProvider metadataProvider,
! WriterMapper writerMapper) {
super(jellyTemplateEngine, metadataProvider, writerMapper);
setFilereplace("defintion.xml");
setMultioutput(false);
}
!
! /**
! * compile list of allowed values
! * @param method to be searcher for allowed values
! * @return comma separated list of allowed values or null
! */
! public String getAllowedValues(JavaMethod method) {
! if (method.getReturns().getValue() == "boolean" ||
method.getReturns().isA(new Type("java.lang.Boolean"))) {
! return "true false";
! }
!
! if (method.getTagByName("qtags.allowed-value") == null) {
! return null;
! }
!
! StringBuffer allowed = new StringBuffer();
! DocletTag[] tags = method.getTagsByName("qtags.allowed-value");
!
! for (int i = 0; i < tags.length; i++) {
! allowed.append(tags[i].getValue());
!
! if (i < tags.length - 1) {
! allowed.append(' ');
! }
! }
!
! return allowed.toString();
}
/**
! * provide target specification ( comma separated )
* @param metadata to process
* @return
*/
public String getTarget(JavaClass clazz) {
! DocletTag[] tags = clazz.getTagsByName("qtags.location");
! StringBuffer target = new StringBuffer();
!
! for (int i = 0; i < tags.length; i++) {
! target.append(tags[i].getValue());
!
! if (i < tags.length - 1) {
! target.append(' ');
! }
! }
!
! return target.toString();
}
!
! public boolean shouldGenerate(Object metadata) {
! return qTagUtils.shouldGenerate(metadata);
}
}
\ No newline at end of file
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits