javax.swing.text.html.parser
Class TagElement

java.lang.Object
  extended by javax.swing.text.html.parser.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
 boolean breaksFlow()
          Calls breaksFlow() for the corresponding html tag and returns the obtained value.
 boolean fictional()
          Get the value of the flag 'fictional'.
 Element getElement()
          Get the element from that the tag was constructed.
 HTML.Tag getHTMLTag()
          Get the corresponding HTML tag.
 boolean isPreformatted()
          Calls isPreformatted() for the corresponding html tag and returns the obtained value.
 String toString()
          Returns string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

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.


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'.


toString

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

Overrides:
toString in class Object
Returns:
the String representing this Object, which may be null
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)