2004.04.29


com.jdc.gui.html
Class Tag

java.lang.Object
  |
  +--com.jdc.xml.Tag
        |
        +--com.jdc.gui.html.Tag
All Implemented Interfaces:
MarkupLanguage, Serializable
Direct Known Subclasses:
SimpleTag

public abstract class Tag
extends Tag
implements MarkupLanguage

The Tag class represents an HTML tag object. An HTML tag has the form: <tag>. The Tag class is a abstract class that contains methods common to all HTML tag classes.

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jdc.xml.Tag
LEFT_BRACKET, RIGHT_BRACKET, SLASH, SPACE
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
protected Tag()
          Constructs a new HTML Tag object.
 
Method Summary
protected  Tag addAttribute(String attribute)
          Adds an HTML tag attribute String of the form: name="value".
protected  String create(String identifier)
          Creates and returns an HTML tag of the form: <tag> for the specified tag identifier.
protected  String getAttributes()
          Returns a String of HTML tag attributes.
protected  String getIdentifier()
          Returns the HTML tag identifier.
protected  String tag(String identifier)
          Returns a String of HTML tag attributes.
 
Methods inherited from class com.jdc.xml.Tag
addAttribute, create, getAttribute, setIdentifier, tag, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tag

protected Tag()
Constructs a new HTML Tag object.

Method Detail

addAttribute

protected Tag addAttribute(String attribute)
Adds an HTML tag attribute String of the form: name="value".

Returns:
This HTML tag.

create

protected String create(String identifier)
Creates and returns an HTML tag of the form: <tag> for the specified tag identifier.

Returns:
An HTML tag String.

getAttributes

protected String getAttributes()
Returns a String of HTML tag attributes.

Overrides:
getAttributes in class Tag
Returns:
A String of HTML tag attributes.

getIdentifier

protected String getIdentifier()
Returns the HTML tag identifier.

Overrides:
getIdentifier in class Tag
Returns:
The HTML tag identifier.

tag

protected String tag(String identifier)
Returns a String of HTML tag attributes.

Returns:
An HTML tag String.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.