/** * Create and return a node for the specified VM install type in the specified Document. * * @param doc the backing {@link Document} * @param vmType the {@link IVMInstallType} to create an {@link Element} for * @return the new {@link Element} */ private Element vmTypeAsElement(Document doc, IVMInstallType vmType) { // Create a node for the VM type and set its 'id' attribute Element element= doc.createElement("vmType"); //$NON-NLS-1$ element.setAttribute("id", vmType.getId()); //$NON-NLS-1$ // For each VM of the specified type, create a subordinate node for it List<IVMInstall> vmList = getVMTypeToVMMap().get(vmType); Iterator<IVMInstall> vmIterator = vmList.iterator(); while (vmIterator.hasNext()) { IVMInstall vm = vmIterator.next(); Element vmElement = vmAsElement(doc, vm); element.appendChild(vmElement); } return element; }
/** * Create and return a node for the specified VM install type in the specified Document. * * @param doc the backing {@link Document} * @param vmType the {@link IVMInstallType} to create an {@link Element} for * @return the new {@link Element} */ private Element vmTypeAsElement(Document doc, IVMInstallType vmType) { // Create a node for the VM type and set its 'id' attribute Element element= doc.createElement("vmType"); //$NON-NLS-1$ element.setAttribute("id", vmType.getId()); //$NON-NLS-1$ // For each VM of the specified type, create a subordinate node for it List<IVMInstall> vmList = getVMTypeToVMMap().get(vmType); Iterator<IVMInstall> vmIterator = vmList.iterator(); while (vmIterator.hasNext()) { IVMInstall vm = vmIterator.next(); Element vmElement = vmAsElement(doc, vm); element.appendChild(vmElement); } return element; }
Set<IVMInstallType> vmInstallTypeSet = getVMTypeToVMMap().keySet(); Iterator<IVMInstallType> keyIterator = vmInstallTypeSet.iterator(); while (keyIterator.hasNext()) {
Set<IVMInstallType> vmInstallTypeSet = getVMTypeToVMMap().keySet(); Iterator<IVMInstallType> keyIterator = vmInstallTypeSet.iterator(); while (keyIterator.hasNext()) {