/** * Prints entries of a given <code>Properties</code> object as XML elements to a given * <code>PrintWriter</code>, maintaining a given indentation level. * * @param elements * The given <code>Properties</code> object. * @param oWriter * The given <code>PrintWriter</code> object. * @param level * The given indentation level. * @throws IOException * if any I/O exception occurred. */ public static void printAllXMLElements(Properties elements, PrintWriter oWriter, int level) throws IOException { printAllXMLElements(elements, null, oWriter, level); }
/** * Prints entries of a given <code>Properties</code> object as XML elements to a given * <code>PrintWriter</code>, maintaining a specified tag order and a given indentation level. * * @param elements * The given <code>Properties</code> object. * @param tagOrder * The <code>String</code> array that specifies the tag order. * @param oWriter * The given <code>PrintWriter</code> object. * @param level * The given indentation level. * @throws IOException * if any I/O exception occurred. */ public static void printAllXMLElements(Properties elements, String[] tagOrder, PrintWriter oWriter, int level) throws IOException { printAllXMLElements(elements, null, tagOrder, oWriter, level); }
tagOrder[0] = NAME_TAG; if (insdObject.getOSSpecs().size() > 0) XMLUtil.printAllXMLElements(insdObject.getOSSpecs(), InstallationDescriptor.PROPERTY_DELIMITER, tagOrder, oWriter, 2); XMLUtil.printAllXMLElements(insdObject.getToolkitsSpecs(), InstallationDescriptor.PROPERTY_DELIMITER, null, oWriter, 2); XMLUtil.printAllXMLElements(insdObject.getFrameworkSpecs(), InstallationDescriptor.PROPERTY_DELIMITER, null, oWriter, 2); XMLUtil.printAllXMLElements(insdObject.getMainComponentProps(), oWriter, 2); String collIterDesc = insdObject.getMainCollIteratorDesc(); String casInitDesc = insdObject.getMainCasInitializerDesc(); XMLUtil.printAllXMLElements(actInfo.params, oWriter, 4);