public void endElement(String uri, String name, String qName) { if (qName.endsWith("Children")) { inChildren = false; Vm vm = vmHandler.getResult(); if (vm != null) this.children.add(vmHandler.getResult()); } else if (qName.endsWith("Tasks")) { inTasks = false; this.tasks.add(taskHandler.getResult()); } else if (qName.endsWith("NetworkSection")) { inNetworkSection = false; this.networkSection = networkSectionHandler.getResult(); } if (inChildren) { vmHandler.endElement(uri, name, qName); } else if (inTasks) { taskHandler.endElement(uri, name, qName); } else if (inNetworkSection) { networkSectionHandler.endElement(uri, name, qName); } else if (qName.equals("Description")) { description = currentOrNull(); } else if (qName.equals("VAppScopedLocalId")) { vAppScopedLocalId = currentOrNull(); } else if (qName.equals("ovfDescriptorUploaded")) { ovfDescriptorUploaded = Boolean.parseBoolean(currentOrNull()); } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (equalsOrSuffix(qName, "Children")) { inChildren = false; Vm vm = vmHandler.getResult(); if (vm != null) this.children.add(vmHandler.getResult()); } else if (equalsOrSuffix(qName, "Tasks")) { inTasks = false; this.tasks.add(taskHandler.getResult()); } else if (equalsOrSuffix(qName, "NetworkSection")) { inNetworkSection = false; this.networkSection = networkSectionHandler.getResult(); } if (inChildren) { vmHandler.endElement(uri, name, qName); } else if (inTasks) { taskHandler.endElement(uri, name, qName); } else if (inNetworkSection) { networkSectionHandler.endElement(uri, name, qName); } else if (equalsOrSuffix(qName, "Description")) { description = currentOrNull(); } else if (equalsOrSuffix(qName, "VAppScopedLocalId")) { vAppScopedLocalId = currentOrNull(); } else if (equalsOrSuffix(qName, "ovfDescriptorUploaded")) { ovfDescriptorUploaded = Boolean.parseBoolean(currentOrNull()); } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (equalsOrSuffix(qName, "Children")) { inChildren = false; Vm vm = vmHandler.getResult(); if (vm != null) this.children.add(vmHandler.getResult()); } else if (equalsOrSuffix(qName, "Tasks")) { inTasks = false; this.tasks.add(taskHandler.getResult()); } else if (equalsOrSuffix(qName, "NetworkSection")) { inNetworkSection = false; this.networkSection = networkSectionHandler.getResult(); } if (inChildren) { vmHandler.endElement(uri, name, qName); } else if (inTasks) { taskHandler.endElement(uri, name, qName); } else if (inNetworkSection) { networkSectionHandler.endElement(uri, name, qName); } else if (equalsOrSuffix(qName, "Description")) { description = currentOrNull(); } else if (equalsOrSuffix(qName, "VAppScopedLocalId")) { vAppScopedLocalId = currentOrNull(); } else if (equalsOrSuffix(qName, "ovfDescriptorUploaded")) { ovfDescriptorUploaded = Boolean.parseBoolean(currentOrNull()); } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (equalsOrSuffix(qName, "Children")) { inChildren = false; Vm vm = vmHandler.getResult(); if (vm != null) this.children.add(vmHandler.getResult()); } else if (equalsOrSuffix(qName, "Tasks")) { inTasks = false; this.tasks.add(taskHandler.getResult()); } else if (equalsOrSuffix(qName, "NetworkSection")) { inNetworkSection = false; this.networkSection = networkSectionHandler.getResult(); } if (inChildren) { vmHandler.endElement(uri, name, qName); } else if (inTasks) { taskHandler.endElement(uri, name, qName); } else if (inNetworkSection) { networkSectionHandler.endElement(uri, name, qName); } else if (equalsOrSuffix(qName, "Description")) { description = currentOrNull(); } else if (equalsOrSuffix(qName, "VAppScopedLocalId")) { vAppScopedLocalId = currentOrNull(); } else if (equalsOrSuffix(qName, "ovfDescriptorUploaded")) { ovfDescriptorUploaded = Boolean.parseBoolean(currentOrNull()); } currentText = new StringBuilder(); }