public class TagElement extends Object
| Constructor | Description | 
|---|---|
| TagElement | Creates a generic HTML TagElement class with  fictionalequals tofalse. | 
| TagElement | Creates a generic HTML TagElement class. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | breaksFlow() | Returns  trueif this tag causes a line break to the flow of data, otherwise returnsfalse. | 
| boolean | fictional() | Returns  trueif the tag is fictional. | 
| Element | getElement() | Returns the element. | 
| HTML.Tag | getHTMLTag() | Returns the tag constant corresponding to the name of the  element | 
| boolean | isPreformatted() | Returns  trueif this tag is pre-formatted. | 
public TagElement(Element elem)
fictional equals to false.elem - an elementpublic TagElement(Element elem, boolean fictional)
elem - an elementfictional - if true the tag is inserted by error recovery.public boolean breaksFlow()
true if this tag causes a line break to the flow of data, otherwise returns false.true if this tag causes a line break to the flow of data, otherwise returns false
public boolean isPreformatted()
true if this tag is pre-formatted.true if this tag is pre-formatted, otherwise returns false
public Element getElement()
public HTML.Tag getHTMLTag()
element
element
public boolean fictional()
true if the tag is fictional.true if the tag is fictional.
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/html/parser/TagElement.html