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
ATagNodethat only really holds whitespace or comments - allows usingContentNodein places where aTagNodeis expected. This class is currently just a short-lived intermediate artifact generated fromHtmlCleanerwhile cleaning an html file and descarded before the results are returned.
-
-
Field Summary
Fields Modifier and Type Field Description private TagNodebodyNodeprivate CommentNodecommentprivate ContentNodetoken-
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.StringgetContent()TagNodegetParent()BaseTokengetToken()booleanremoveFromTree()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:
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
public BaseToken getToken()
-
getContent
public java.lang.String getContent()
-
-