/** * Utility function that returns ArrayOfString in HTML like this: Title<br> * <LI>string1 * <LI>string2 ... * * @param title * @param arrayOfString * @return String */ public static String htmlList(String title, ArrayOfString arrayOfString) { StringBuffer stringBuffer = new StringBuffer(); if (arrayOfString != null) { String[] strings = arrayOfString.getString(); stringBuffer.append(title + "<BR>"); for (int i = 0; i < strings.length; i++) { stringBuffer.append("<LI>" + strings[i]); } stringBuffer.append("<BR>"); } return stringBuffer.toString(); }
/** * Convenient function to create ArrayOfString. * * @param strings Java's String[] * @return ArrayOfString */ public static com.actuate.schemas.ArrayOfString newArrayOfString(String[] strings) { com.actuate.schemas.ArrayOfString arrayOfString = new com.actuate.schemas.ArrayOfString(); arrayOfString.setString(strings); return arrayOfString; }