Package org.htmlcleaner
Class ProxyTagNode
- java.lang.Object
-
- org.htmlcleaner.BaseTokenImpl
-
- org.htmlcleaner.BaseHtmlNode
-
- org.htmlcleaner.TagToken
-
- org.htmlcleaner.TagNode
-
- org.htmlcleaner.ProxyTagNode
-
class ProxyTagNode extends TagNode
ATagNode
that only really holds whitespace or comments - allows usingContentNode
in places where aTagNode
is expected. This class is currently just a short-lived intermediate artifact generated fromHtmlCleaner
while cleaning an html file and descarded before the results are returned.
-
-
Field Summary
Fields Modifier and Type Field Description private TagNode
bodyNode
private CommentNode
comment
private ContentNode
token
-
Fields inherited from class org.htmlcleaner.BaseHtmlNode
parent
-
-
Constructor Summary
Constructors Constructor Description ProxyTagNode(CommentNode comment, TagNode bodyNode)
ProxyTagNode(ContentNode token, TagNode bodyNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContent()
TagNode
getParent()
BaseToken
getToken()
boolean
removeFromTree()
Remove this node from the tree.-
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 Detail
-
token
private ContentNode token
-
comment
private CommentNode comment
-
bodyNode
private TagNode bodyNode
-
-
Constructor Detail
-
ProxyTagNode
public ProxyTagNode(ContentNode token, TagNode bodyNode)
-
ProxyTagNode
public ProxyTagNode(CommentNode comment, TagNode bodyNode)
-
-
Method Detail
-
getParent
public TagNode 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
public BaseToken getToken()
-
getContent
public java.lang.String getContent()
-
-