processCloud(child, feed);
}
}
private void processCloud(Element element, IFeed feed) {
ICloud cloud = Owl.getModelFactory().createCloud(feed);
/* Interpret Attributes */
List< ? > cloudAttributes = element.getAttributes();
for (Iterator< ? > iter = cloudAttributes.iterator(); iter.hasNext();) {
Attribute attribute = (Attribute) iter.next();
String name = attribute.getName().toLowerCase();
/* Check wether this Attribute is to be processed by a Contribution */
if (processAttributeExtern(attribute, cloud))
continue;
/* Domain */
else if ("domain".equals(name)) //$NON-NLS-1$
cloud.setDomain(attribute.getValue());
/* Path */
else if ("path".equals(name)) //$NON-NLS-1$
cloud.setPath(attribute.getValue());
/* Port */
else if ("port".equals(name)) {//$NON-NLS-1$
int port = StringUtils.stringToInt(attribute.getValue());
if (port >= 0)
cloud.setPort(port);
}
/* Procedure Call */
else if ("registerprocedure".equals(name)) //$NON-NLS-1$
cloud.setRegisterProcedure(attribute.getValue());
/* Path */
else if ("protocol".equals(name)) //$NON-NLS-1$
cloud.setProtocol(attribute.getValue());
}
}