Attr nilAttribute2 = currentWorkerSizeElement.getAttributeNodeNS("http://www.w3.org/2001/XMLSchema-instance", "nil");
if (nilAttribute2 != null) {
isNil2 = "true".equals(nilAttribute2.getValue());
}
if (isNil2 == false) {
WebSpaceWorkerSize currentWorkerSizeInstance;
currentWorkerSizeInstance = WebSpaceWorkerSize.valueOf(currentWorkerSizeElement.getTextContent());
webSpaceInstance.setCurrentWorkerSize(currentWorkerSizeInstance);
}
}
Element geoLocationElement = XmlUtility.getElementByTagNameNS(webSpacesElement, "http://schemas.microsoft.com/windowsazure", "GeoLocation");
if (geoLocationElement != null) {
String geoLocationInstance;
geoLocationInstance = geoLocationElement.getTextContent();
webSpaceInstance.setGeoLocation(geoLocationInstance);
}
Element geoRegionElement = XmlUtility.getElementByTagNameNS(webSpacesElement, "http://schemas.microsoft.com/windowsazure", "GeoRegion");
if (geoRegionElement != null) {
String geoRegionInstance;
geoRegionInstance = geoRegionElement.getTextContent();
webSpaceInstance.setGeoRegion(geoRegionInstance);
}
Element nameElement = XmlUtility.getElementByTagNameNS(webSpacesElement, "http://schemas.microsoft.com/windowsazure", "Name");
if (nameElement != null) {
String nameInstance;
nameInstance = nameElement.getTextContent();
webSpaceInstance.setName(nameInstance);
}
Element planElement = XmlUtility.getElementByTagNameNS(webSpacesElement, "http://schemas.microsoft.com/windowsazure", "Plan");
if (planElement != null) {
String planInstance;
planInstance = planElement.getTextContent();
webSpaceInstance.setPlan(planInstance);
}
Element statusElement = XmlUtility.getElementByTagNameNS(webSpacesElement, "http://schemas.microsoft.com/windowsazure", "Status");
if (statusElement != null) {
WebSpaceStatus statusInstance;
statusInstance = WebSpaceStatus.valueOf(statusElement.getTextContent());
webSpaceInstance.setStatus(statusInstance);
}
Element subscriptionElement = XmlUtility.getElementByTagNameNS(webSpacesElement, "http://schemas.microsoft.com/windowsazure", "Subscription");
if (subscriptionElement != null) {
String subscriptionInstance;
subscriptionInstance = subscriptionElement.getTextContent();
webSpaceInstance.setSubscription(subscriptionInstance);
}
Element workerSizeElement = XmlUtility.getElementByTagNameNS(webSpacesElement, "http://schemas.microsoft.com/windowsazure", "WorkerSize");
if (workerSizeElement != null && (workerSizeElement.getTextContent() == null || workerSizeElement.getTextContent().isEmpty() == true) == false) {
WebSpaceWorkerSize workerSizeInstance;
workerSizeInstance = WebSpaceWorkerSize.valueOf(workerSizeElement.getTextContent());
webSpaceInstance.setWorkerSize(workerSizeInstance);
}
}
}