org.opencms.util
Class CmsNoAutoCloseTag

java.lang.Object
  extended by org.htmlparser.nodes.AbstractNode
      extended by org.htmlparser.nodes.TagNode
          extended by 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 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 CompositeTag: They are not supposed to have a closing tag and following tags are not treated as their children but siblings.

Since:
7.5.1
Version:
$Revision: 1.4 $
Author:
Achim Westermann
See Also:
Serialized Form

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
 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
 
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 Detail

getIds

public java.lang.String[] getIds()
Specified by:
getIds in interface org.htmlparser.Tag
Overrides:
getIds in class org.htmlparser.nodes.TagNode
See Also:
TagNode.getIds()