Package org.opencms.util
Class CmsNoAutoCloseTag
- java.lang.Object
-
- org.htmlparser.nodes.AbstractNode
-
- org.htmlparser.nodes.TagNode
-
- org.opencms.util.CmsNoAutoCloseTag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,org.htmlparser.Node
,org.htmlparser.Tag
public class CmsNoAutoCloseTag extends org.htmlparser.nodes.TagNode
A
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.TagNode
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getIds()
-
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
-
-
-
-
Method Detail
-
getIds
public java.lang.String[] getIds()
- Specified by:
getIds
in interfaceorg.htmlparser.Tag
- Overrides:
getIds
in classorg.htmlparser.nodes.TagNode
- See Also:
TagNode.getIds()
-
-