public class TagElement extends Object
| Constructor | Description |
|---|---|
TagElement(Element elem) |
Creates a generic HTML TagElement class with
fictional equals to false. |
TagElement(Element elem,
boolean fictional) |
Creates a generic HTML TagElement class.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
breaksFlow() |
Returns
true if this tag causes a
line break to the flow of data, otherwise returns
false. |
boolean |
fictional() |
Returns
true if 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
true if 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
falsepublic boolean isPreformatted()
true if this tag is pre-formatted.true if this tag is pre-formatted,
otherwise returns falsepublic Element getElement()
public HTML.Tag getHTMLTag()
elementelementpublic boolean fictional()
true if the tag is fictional.true if the tag is fictional. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1