String name = cmNode.getNodeName();
boolean include = true;
for(int k = 0; k < modelQueryExtensions.size() && include; k++) {
{
ModelQueryExtension extension = (ModelQueryExtension)modelQueryExtensions.get(k);
include = extension.isApplicableChildElement(element, namespace, name);
if (!include)
{
// remove the cmNode from the list
j.remove();
}
}
}
}
}
// add MQE-provided content
for(int k = 0; k < modelQueryExtensions.size(); k++)
{
ModelQueryExtension extension = (ModelQueryExtension)modelQueryExtensions.get(k);
cmnodes.addAll(Arrays.asList(extension.getAvailableElementContent(element, parentNamespace, includeOptions)));
}
}