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
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. 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-internal+0-adhoc.mlchung.jdk9-jdeps