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-serv30108/plugin-qtags/src/main/java/org/xdoclet/plugin/qtags/doclipse

Modified Files:
        QTagDoclipsePlugin.java 
Log Message:
Support to QTags to return array types: 
Tag values will be running through a StringTokenizer.
Each array value will be validated through if used it @qtags.allowed-value.
The StringTokenizer delimiter is by default "," but can also be ";" - This can 
be set using @qtags.list-token.
Note: Before @qtags.default was not being verified against a valid value set by 
@qtags.allowed-value.
Current generated tag impl changed this - The default value is set before 
values validation.



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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** QTagDoclipsePlugin.java     31 May 2005 11:28:56 -0000      1.3
--- QTagDoclipsePlugin.java     21 Aug 2005 13:44:31 -0000      1.4
***************
*** 36,40 ****
       */
      public String getAllowedValues(JavaMethod method) {
!         if (method.getReturns().getValue() == "boolean" || 
method.getReturns().isA(new Type("java.lang.Boolean"))) {
              return "true false";
          }
--- 36,42 ----
       */
      public String getAllowedValues(JavaMethod method) {
!         if (method.getReturns().getValue().equals("boolean") 
!             || method.getReturns().getValue().equals("java.lang.Boolean")) {
! //            || method.getReturns().isA(new Type("java.lang.Boolean"))) {
              return "true false";
          }



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-plugins-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to