intrinsicSettingsInstance.setPlan(planInstance);
}
Element quotaElement = XmlUtility.getElementByTagNameNS(intrinsicSettingsElement, "http://schemas.microsoft.com/windowsazure", "Quota");
if (quotaElement != null) {
JobCollectionQuota quotaInstance = new JobCollectionQuota();
intrinsicSettingsInstance.setQuota(quotaInstance);
Element maxJobCountElement = XmlUtility.getElementByTagNameNS(quotaElement, "http://schemas.microsoft.com/windowsazure", "MaxJobCount");
if (maxJobCountElement != null && (maxJobCountElement.getTextContent() == null || maxJobCountElement.getTextContent().isEmpty() == true) == false) {
int maxJobCountInstance;
maxJobCountInstance = DatatypeConverter.parseInt(maxJobCountElement.getTextContent());
quotaInstance.setMaxJobCount(maxJobCountInstance);
}
Element maxJobOccurrenceElement = XmlUtility.getElementByTagNameNS(quotaElement, "http://schemas.microsoft.com/windowsazure", "MaxJobOccurrence");
if (maxJobOccurrenceElement != null && (maxJobOccurrenceElement.getTextContent() == null || maxJobOccurrenceElement.getTextContent().isEmpty() == true) == false) {
int maxJobOccurrenceInstance;
maxJobOccurrenceInstance = DatatypeConverter.parseInt(maxJobOccurrenceElement.getTextContent());
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());