Class StartTagType

Direct Known Subclasses:
StartTagTypeGenericImplementation

public abstract class StartTagType extends TagType
Defines the syntax for a start tag type.

A start tag type is any TagType that starts with the character '<' (as with all tag types), but whose second character is not '/'.

This includes types for many tags which stand alone, without a corresponding end tag, and would not intuitively be categorised as a "start tag". For example, an HTML comment in a document is represented as a single start tag that spans the whole comment, and does not have an end tag at all.

The singleton instances of all the standard start tag types are available in this class as static fields.

Because all StartTagType instaces must be singletons, the '==' operator can be used to test for a particular tag type instead of the equals(Object) method.

See Also: