* @param method
*/
private boolean parseResponseNode(Node responseElement, MethodNode method) {
if (containsOnlyAllowedChildren(responseElement, WadlXml.responseChildren)) {
// responseChildren = {representationNode, faultNode, paramNode, docNode};
NodeList childNodes = responseElement.getChildNodes();
ResponseNode response = new ResponseNode(method, method.getApplication());
method.addResponse(response);
for (int i = 0; i < childNodes.getLength(); i++) {
if (childNodes.item(i).getNodeName().equals(WadlXml.representationNode)) {
if (!parseRepresentationNode(childNodes.item(i), response, false)) {
return false;
}
}
else if (childNodes.item(i).getNodeName().equals(WadlXml.faultNode)) {
if (!parseFaultNode(childNodes.item(i), response, false)) {
return false;
}
}
else if (childNodes.item(i).getNodeName().equals(WadlXml.paramNode)) {
if (!parseParamNode(childNodes.item(i), response, false)) {
return false;
}
}
else if (childNodes.item(i).getNodeName().equals(WadlXml.docNode)) {
if (!parseDocNode(childNodes.item(i), response)) {
return false;
}
}
}
}