|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jdc.xml.Tag
The Tag class represents an XML tag object. An XML tag has the form:
<tag>. The Tag class is a abstract class that
contains methods common to all XML tag classes.
| Field Summary | |
protected static String |
LEFT_BRACKET
A left angle character for constructing a tag of the form: <tag>. |
protected static String |
RIGHT_BRACKET
A right angle character for constructing a tag of the form: <tag>. |
protected static String |
SLASH
A forward slash character for constructing an end tag of the form: </tag>. |
protected static String |
SPACE
A space character. |
| Constructor Summary | |
protected |
Tag()
Constructs a new XML Tag object. |
| Method Summary | |
protected Tag |
addAttribute(Attribute attribute)
Adds an XML tag attribute of the form: name="value". |
protected String |
create()
Creates and returns an XML tag of the form: <tag> for the current tag identifier and attributes. |
protected String |
getAttribute(int length,
String attribute)
Returns an XML tag attribute String. |
protected String |
getAttributes()
Returns a String of XML tag attributes. |
protected String |
getIdentifier()
Returns the XML tag identifier. |
protected Tag |
setIdentifier(String identifier)
Sets the XML tag identifier. |
protected String |
tag()
Returns a String of XML tag attributes. |
String |
toString()
Returns an XML tag of the form: <tag>. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final String LEFT_BRACKET
protected static final String RIGHT_BRACKET
protected static final String SLASH
protected static final String SPACE
| Constructor Detail |
protected Tag()
Tag object.
| Method Detail |
protected Tag addAttribute(Attribute attribute)
protected String create()
String.
protected String getAttribute(int length,
String attribute)
String.
String.protected String getAttributes()
String of XML tag attributes.
String of XML tag attributes.protected String getIdentifier()
protected Tag setIdentifier(String identifier)
protected String tag()
String of XML tag attributes.
String.public String toString()
toString in class ObjectString.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||