|
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
The Attribute class represents an attribute associated with an XML
tag object. An XML tag attribute has the form: name="value". XML tag attribute
values are always enclosed in double quotes.
| Field Summary | |
protected static String |
DOUBLE_QUOTE
A double quote character for constructing an attribute of the form: name="value". |
protected static String |
EQUALS
An equals sign for constructing an attribute of the form: name=value. |
| Constructor Summary | |
Attribute()
Constructs a new XML tag Attribute object. |
|
| Method Summary | |
protected String |
create()
Creates and returns an XML tag attribute of the form name="value" for the current attribute name and value. |
protected String |
create(String name,
int value)
Creates and returns an XML 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 XML tag attribute of the form name="value+qualifier" for a value with a qualifier. |
protected String |
create(String name,
String value)
Creates and returns an XML tag attribute of the form: name="value". |
protected String |
create(String name,
String value,
boolean trim)
Creates and returns an XML tag attribute of the form: name="value". |
protected String |
create(String name,
String value,
String qualifier)
Creates and returns an XML tag attribute of the form name="value+qualifier" for a value with a qualifier. |
protected String |
create(String name,
String value,
String qualifier,
boolean trim)
Creates and returns an XML tag attribute of the form name="value+qualifier" for an value with a qualifier. |
String |
getName()
Returns the XML tag attribute name. |
String |
getQualifier()
Returns the XML tag attribute value qualifier. |
String |
getQuotedValue()
Returns the XML tag attribute quoted value. |
String |
getValue()
Returns the XML tag attribute value. |
Attribute |
setName(String name)
Sets the XML tag attribute name. |
Attribute |
setQualifier(String qualifier)
Sets the XML tag attribute value qualifier. |
Attribute |
setValue(String value)
Sets the XML tag attribute value. |
String |
toString()
Returns an XML tag attribute of the form: name="value". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final String DOUBLE_QUOTE
protected static final String EQUALS
| Constructor Detail |
public Attribute()
Attribute object.
| Method Detail |
protected String create()
String.
protected String create(String name,
int value)
String.
protected String create(String name,
int value,
String qualifier)
String.
protected String create(String name,
String value)
String.
protected String create(String name,
String value,
boolean trim)
String.
protected String create(String name,
String value,
String qualifier)
String.
protected String create(String name,
String value,
String qualifier,
boolean trim)
String.public String getName()
public String getQualifier()
public String getQuotedValue()
public String getValue()
public Attribute setName(String name)
public Attribute setQualifier(String qualifier)
public Attribute setValue(String value)
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 | ||||||||||