Element rulesSequenceElement = XmlUtility.getElementByTagNameNS(endpointAclElement, "http://schemas.microsoft.com/windowsazure", "Rules");
if (rulesSequenceElement != null) {
for (int i13 = 0; i13 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(rulesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Rule").size(); i13 = i13 + 1) {
org.w3c.dom.Element rulesElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(rulesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Rule").get(i13));
AccessControlListRule ruleInstance = new AccessControlListRule();
endpointAclInstance.getRules().add(ruleInstance);
Element orderElement = XmlUtility.getElementByTagNameNS(rulesElement, "http://schemas.microsoft.com/windowsazure", "Order");
if (orderElement != null && (orderElement.getTextContent() == null || orderElement.getTextContent().isEmpty() == true) == false) {
int orderInstance;
orderInstance = DatatypeConverter.parseInt(orderElement.getTextContent());
ruleInstance.setOrder(orderInstance);
}
Element actionElement = XmlUtility.getElementByTagNameNS(rulesElement, "http://schemas.microsoft.com/windowsazure", "Action");
if (actionElement != null) {
String actionInstance;
actionInstance = actionElement.getTextContent();
ruleInstance.setAction(actionInstance);
}
Element remoteSubnetElement = XmlUtility.getElementByTagNameNS(rulesElement, "http://schemas.microsoft.com/windowsazure", "RemoteSubnet");
if (remoteSubnetElement != null) {
String remoteSubnetInstance;
remoteSubnetInstance = remoteSubnetElement.getTextContent();
ruleInstance.setRemoteSubnet(remoteSubnetInstance);
}
Element descriptionElement = XmlUtility.getElementByTagNameNS(rulesElement, "http://schemas.microsoft.com/windowsazure", "Description");
if (descriptionElement != null) {
String descriptionInstance;
descriptionInstance = descriptionElement.getTextContent();
ruleInstance.setDescription(descriptionInstance);
}
}
}
}
}