|
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.Attribute
|
+--com.jdc.gui.html.tag.Attribute
The Attribute class represents an attribute associated with an HTML
tag object. An HTML tag attribute has the form: name="value". HTML tag attribute
values may be enclosed in double quotes, single quotes, or no quotes at all. The
default is double quotes as specified by the XHTML attribute in the
MarkupLanguage interface.
Attribute,
Serialized Form| Field Summary | |
protected static String |
SINGLE_QUOTE
A single quote character for constructing an attribute of the form: name='value'. |
| Fields inherited from class com.jdc.xml.tag.Attribute |
DOUBLE_QUOTE, EQUALS |
| Fields inherited from interface com.jdc.gui.html.MarkupLanguage |
XHTML |
| Constructor Summary | |
|
Attribute()
Constructs a new HTML tag Attribute object. |
protected |
Attribute(boolean useSingleQuotes)
Constructs a new HTML tag Attribute object for constructing an
attribute of the form: name='value' or name=value. |
| Method Summary | |
protected String |
create(String name,
int value)
Creates and returns an HTML tag attribute of the form name="value" for a numeric attribute value. |
protected String |
create(String name,
int value,
String qualifier)
Creates and returns an HTML tag attribute of the form name="value+qualifier" for a value with a qualifier. |
String |
getName()
Returns the HTML tag attribute name. |
protected String |
getQuoteCharacter()
Returns the HTML tag attribute quote character. |
String |
getQuotedValue()
Returns the HTML tag attribute quoted value. |
String |
getValue()
Returns the HTML tag attribute value. |
| Methods inherited from class com.jdc.xml.tag.Attribute |
create, create, create, create, create, getQualifier, setName, setQualifier, setValue, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final String SINGLE_QUOTE
| Constructor Detail |
public Attribute()
Attribute object.
protected Attribute(boolean useSingleQuotes)
Attribute object for constructing an
attribute of the form: name='value' or name=value.
| Method Detail |
protected String create(String name,
int value)
create in class AttributeString.
protected String create(String name,
int value,
String qualifier)
create in class AttributeString.public String getName()
getName in class Attributeprotected String getQuoteCharacter()
public String getQuotedValue()
getQuotedValue in class Attributepublic String getValue()
getValue in class Attribute
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||