serverFarmInstance.setCurrentNumberOfWorkers(currentNumberOfWorkersInstance);
}
Element currentWorkerSizeElement = XmlUtility.getElementByTagNameNS(serverFarmsElement, "http://schemas.microsoft.com/windowsazure", "CurrentWorkerSize");
if (currentWorkerSizeElement != null) {
ServerFarmWorkerSize currentWorkerSizeInstance;
currentWorkerSizeInstance = ServerFarmWorkerSize.valueOf(currentWorkerSizeElement.getTextContent());
serverFarmInstance.setCurrentWorkerSize(currentWorkerSizeInstance);
}
Element nameElement = XmlUtility.getElementByTagNameNS(serverFarmsElement, "http://schemas.microsoft.com/windowsazure", "Name");
if (nameElement != null) {
String nameInstance;
nameInstance = nameElement.getTextContent();
serverFarmInstance.setName(nameInstance);
}
Element numberOfWorkersElement = XmlUtility.getElementByTagNameNS(serverFarmsElement, "http://schemas.microsoft.com/windowsazure", "NumberOfWorkers");
if (numberOfWorkersElement != null) {
int numberOfWorkersInstance;
numberOfWorkersInstance = DatatypeConverter.parseInt(numberOfWorkersElement.getTextContent());
serverFarmInstance.setNumberOfWorkers(numberOfWorkersInstance);
}
Element workerSizeElement = XmlUtility.getElementByTagNameNS(serverFarmsElement, "http://schemas.microsoft.com/windowsazure", "WorkerSize");
if (workerSizeElement != null) {
ServerFarmWorkerSize workerSizeInstance;
workerSizeInstance = ServerFarmWorkerSize.valueOf(workerSizeElement.getTextContent());
serverFarmInstance.setWorkerSize(workerSizeInstance);
}
Element statusElement = XmlUtility.getElementByTagNameNS(serverFarmsElement, "http://schemas.microsoft.com/windowsazure", "Status");