Class ProxyTagNode
java.lang.Object
org.htmlcleaner.BaseTokenImpl
org.htmlcleaner.BaseHtmlNode
org.htmlcleaner.TagToken
org.htmlcleaner.TagNode
org.htmlcleaner.ProxyTagNode
A
TagNode that only really holds whitespace or comments - allows
using ContentNode in places where a TagNode is expected.
This class is currently just a short-lived intermediate artifact generated
from HtmlCleaner while cleaning an html file and descarded
before the results are returned.-
Field Summary
FieldsFields inherited from class BaseHtmlNode
parent -
Constructor Summary
ConstructorsConstructorDescriptionProxyTagNode(CommentNode comment, TagNode bodyNode) ProxyTagNode(ContentNode token, TagNode bodyNode) -
Method Summary
Methods inherited from class TagNode
addAttribute, addChild, addChildren, addItemForMoving, addNamespaceDeclaration, collectNamespacePrefixesOnPath, evaluateXPath, findElementByAttValue, findElementByName, findElementHavingAttribute, getAllChildren, getAllElements, getAllElementsList, getAttributeByName, getAttributes, getAttributesInLowerCase, getChildIndex, getChildren, getChildTagList, getChildTags, getDocType, getElementList, getElementListByAttValue, getElementListByName, getElementListHavingAttribute, getElementsByAttValue, getElementsByName, getElementsHavingAttribute, getItemsToMove, getName, getNamespaceDeclarations, getNamespaceURIOnPath, getText, hasAttribute, hasChildren, insertChild, insertChildAfter, insertChildBefore, isAutoGenerated, isCopy, isEmpty, isForeignMarkup, isFormed, isPruned, isTrimAttributeValues, makeCopy, removeAllChildren, removeAttribute, removeChild, serialize, setAttributes, setAutoGenerated, setChildren, setDocType, setForeignMarkup, setFormed, setFormed, setItemsToMove, setPruned, setTrimAttributeValues, traverseMethods inherited from class BaseHtmlNode
getSiblings, setParentMethods inherited from class BaseTokenImpl
getCol, getRow, setCol, setRowMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HtmlNode
getSiblings, setParent
-
Field Details
-
token
-
comment
-
bodyNode
-
-
Constructor Details
-
ProxyTagNode
-
ProxyTagNode
-
-
Method Details
-
getParent
- Specified by:
getParentin interfaceHtmlNode- Overrides:
getParentin classBaseHtmlNode
-
removeFromTree
public boolean removeFromTree()Description copied from class:TagNodeRemove this node from the tree.- Overrides:
removeFromTreein classTagNode- Returns:
- True if element is removed (if it is not root node).
-
getToken
-
getContent
-