Update of /cvsroot/xdoclet/xdoclet/core/src/xdoclet/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21963/core/src/xdoclet/util
Modified Files: DocletUtil.java Log Message: XDT-1061: patch from Peilin Zhang to allow hibernate mapping files to be generated when only a @hibernate.query tag is present in a java source file Index: DocletUtil.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/util/DocletUtil.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** DocletUtil.java 10 Jun 2003 13:32:39 -0000 1.19 --- DocletUtil.java 18 Apr 2005 22:00:17 -0000 1.20 *************** *** 35,37 **** --- 35,58 ---- return ret; } + + /** + * Return a tokenizable String by the specified delimiter from an Object array. + * + * @param array the array to be concatenated into a string with the specified delimiter + * @param delim the delimiter to use + * @return a tokenizable String by the specified delimiter from an Object array. + */ + public static String arrayToDelimitedString(Object[] array, String delim) + { + if (array == null) + return null; + StringBuffer buff = new StringBuffer(); + + for (int i = 0; i < array.length; i++) { + if (i != 0) + buff.append(delim); + buff.append(array[i]); + } + return buff.toString(); + } } ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel