super();
}
IStructuredCleanupHandler createHandler(Node node, IStructuredCleanupPreferences cleanupPreferences) {
short nodeType = node.getNodeType();
IStructuredCleanupHandler handler = null;
switch (nodeType) {
case Node.ELEMENT_NODE : {
if (isXMLTag(node))
handler = new ElementNodeCleanupHandler();
else
handler = new JSPElementNodeCleanupHandler();
break;
}
case Node.TEXT_NODE : {
if (isParentStyleTag(node))
handler = new CSSTextNodeCleanupHandler();
else
handler = new NodeCleanupHandler();
break;
}
default : {
handler = new NodeCleanupHandler();
}
}
handler.setCleanupPreferences(cleanupPreferences);
return handler;
}