Package org.htmlcleaner
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 org.htmlcleaner.BaseHtmlNode
parent
-
Constructor Summary
ConstructorsConstructorDescriptionProxyTagNode
(CommentNode comment, TagNode bodyNode) ProxyTagNode
(ContentNode token, TagNode bodyNode) -
Method Summary
Methods inherited from class org.htmlcleaner.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, traverse
Methods inherited from class org.htmlcleaner.BaseHtmlNode
getSiblings, setParent
Methods inherited from class org.htmlcleaner.BaseTokenImpl
getCol, getRow, setCol, setRow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.htmlcleaner.HtmlNode
getSiblings, setParent
-
Field Details
-
token
-
comment
-
bodyNode
-
-
Constructor Details
-
ProxyTagNode
-
ProxyTagNode
-
-
Method Details
-
getParent
- Specified by:
getParent
in interfaceHtmlNode
- Overrides:
getParent
in classBaseHtmlNode
-
removeFromTree
public boolean removeFromTree()Description copied from class:TagNode
Remove this node from the tree.- Overrides:
removeFromTree
in classTagNode
- Returns:
- True if element is removed (if it is not root node).
-
getToken
-
getContent
-