2004.04.29


com.jdc.xml
Class SimpleTag

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

public class SimpleTag
extends Tag

The SimpleTag class represents an XML simple tag object. An XML simple tag has the form: <tag>, <!tag>, or <?tag ?>.

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
 
Constructor Summary
protected SimpleTag()
          Constructs a new XML SimpleTag object.
 
Method Summary
protected  String create(String startChar, String identifier)
          Creates and returns an XML simple tag with the specified start character.
protected  String create(String startChar, String identifier, String endChar)
          Creates and returns an XML simple tag with the specified start and end characters.
protected  String getEndChar()
          Returns the XML tag end character.
protected  String getStartChar()
          Returns the XML tag start character.
protected  SimpleTag setEndChar(String endChar)
          Sets the XML tag end character.
protected  SimpleTag setStartChar(String startChar)
          Sets the XML tag start character.
 String toString()
          Returns an XML tag of the form: <name >.
 
Methods inherited from class com.jdc.xml.Tag
addAttribute, create, getAttribute, getAttributes, getIdentifier, setIdentifier, tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleTag

protected SimpleTag()
Constructs a new XML SimpleTag object.

Method Detail

create

protected String create(String startChar,
                        String identifier)
Creates and returns an XML simple tag with the specified start character.

Returns:
An XML simple tag String.

create

protected String create(String startChar,
                        String identifier,
                        String endChar)
Creates and returns an XML simple tag with the specified start and end characters.

Returns:
An XML simple tag String.

getEndChar

protected String getEndChar()
Returns the XML tag end character.

Returns:
The XML tag end character.

getStartChar

protected String getStartChar()
Returns the XML tag start character.

Returns:
The XML tag start character.

setStartChar

protected SimpleTag setStartChar(String startChar)
Sets the XML tag start character.

Returns:
This XML tag.

setEndChar

protected SimpleTag setEndChar(String endChar)
Sets the XML tag end character.

Returns:
This XML tag.

toString

public String toString()
Returns an XML tag of the form: <name >.

Overrides:
toString in class Tag
Returns:
An XML tag String.

2004.04.29



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