quotaInstance.setMaxJobOccurrence(maxJobOccurrenceInstance);
}
Element maxRecurrenceElement = XmlUtility.getElementByTagNameNS(quotaElement, "http://schemas.microsoft.com/windowsazure", "MaxRecurrence");
if (maxRecurrenceElement != null) {
JobCollectionMaxRecurrence maxRecurrenceInstance = new JobCollectionMaxRecurrence();
quotaInstance.setMaxRecurrence(maxRecurrenceInstance);
Element frequencyElement = XmlUtility.getElementByTagNameNS(maxRecurrenceElement, "http://schemas.microsoft.com/windowsazure", "Frequency");
if (frequencyElement != null) {
JobCollectionRecurrenceFrequency frequencyInstance;
frequencyInstance = JobCollectionRecurrenceFrequency.valueOf(frequencyElement.getTextContent());
maxRecurrenceInstance.setFrequency(frequencyInstance);
}
Element intervalElement = XmlUtility.getElementByTagNameNS(maxRecurrenceElement, "http://schemas.microsoft.com/windowsazure", "Interval");
if (intervalElement != null) {
int intervalInstance;
intervalInstance = DatatypeConverter.parseInt(intervalElement.getTextContent());
maxRecurrenceInstance.setInterval(intervalInstance);
}
}
}
}