Package org.opencms.util
Class CmsNoAutoCloseTag
java.lang.Object
org.htmlparser.nodes.AbstractNode
org.htmlparser.nodes.TagNode
org.opencms.util.CmsNoAutoCloseTag
- All Implemented Interfaces:
Serializable
,Cloneable
,org.htmlparser.Node
,org.htmlparser.Tag
A
TagNode
with an arbitrary name which is misused for avoiding the creation of
the corresponding end tag in case the HTML to parse is not balanced.
The trick is: The free name (constructor) is used by the tag factory which allows to use these
tags as replacement for the regular ones. And these tags do not extend
: They are not supposed to have a closing tag and following tags are
not treated as their children but siblings. CompositeTag
- Since:
- 7.5.1
- See Also:
-
Field Summary
Fields inherited from class org.htmlparser.nodes.TagNode
breakTags, mAttributes, mDefaultScanner
Fields inherited from class org.htmlparser.nodes.AbstractNode
children, mPage, nodeBegin, nodeEnd, parent
-
Method Summary
Methods inherited from class org.htmlparser.nodes.TagNode
accept, breaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEnders, getEndingLineNumber, getEndTag, getEndTagEnders, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getText, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setEndTag, setTagBegin, setTagEnd, setTagName, setText, setThisScanner, toHtml, toPlainTextString, toString, toTagHtml
Methods inherited from class org.htmlparser.nodes.AbstractNode
clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.htmlparser.Node
clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml
-
Method Details
-
getIds
- Specified by:
getIds
in interfaceorg.htmlparser.Tag
- Overrides:
getIds
in classorg.htmlparser.nodes.TagNode
- See Also:
-
TagNode.getIds()
-