logger.error(message);
throw new MolgenisModelException(message);
}
// construct
Method method = new Method(element.getAttribute("name"), model.getMethodSchema());
NodeList nodes = element.getChildNodes();
for (int nodeid = 0; nodeid < nodes.getLength(); ++nodeid)
{
Node node = nodes.item(nodeid);
if (node.getNodeType() != Node.ELEMENT_NODE)
{
continue;
}
if (((Element) node).getTagName().equals("description"))
{
method.setDescription(((Element) node).getTextContent().trim());
}
else if (((Element) node).getTagName().equals("parameter"))
{
parseParameter(method, (Element) node);
}