javax.swing.text.html.parser

Class TagElement

public class TagElement extends Object

The SGML element, defining a single html tag.
Constructor Summary
TagElement(Element an_element)
Creates the html tag element from the defintion, stored in the given element.
TagElement(Element an_element, boolean is_fictional)
Creates the html tag element from the defintion, stored in the given element, setting the flag 'fictional' to the given value.
Method Summary
booleanbreaksFlow()
Calls breaksFlow() for the corresponding html tag and returns the obtained value.
booleanfictional()
Get the value of the flag 'fictional'.
ElementgetElement()
Get the element from that the tag was constructed.
HTML.TaggetHTMLTag()
Get the corresponding HTML tag.
booleanisPreformatted()
Calls isPreformatted() for the corresponding html tag and returns the obtained value.
StringtoString()
Returns string representation of this object.

Constructor Detail

TagElement

public TagElement(Element an_element)
Creates the html tag element from the defintion, stored in the given element. Sets the flag 'fictional' to false.

Parameters: an_element

TagElement

public TagElement(Element an_element, boolean is_fictional)
Creates the html tag element from the defintion, stored in the given element, setting the flag 'fictional' to the given value.

Method Detail

breaksFlow

public boolean breaksFlow()
Calls breaksFlow() for the corresponding html tag and returns the obtained value.

fictional

public boolean fictional()
Get the value of the flag 'fictional'.

getElement

public Element getElement()
Get the element from that the tag was constructed.

getHTMLTag

public HTML.Tag getHTMLTag()
Get the corresponding HTML tag. This is either one of the pre-defined HTML tags or the instance of the UnknownTag with the element name.

isPreformatted

public boolean isPreformatted()
Calls isPreformatted() for the corresponding html tag and returns the obtained value.

toString

public String toString()
Returns string representation of this object.