public interface AttributeList
| Modifier and Type | Method and Description |
|---|---|
int |
attributeCount()
Return the count of attributes
|
Iterator<String> |
attributeNames()
Return the list of attribute names
|
boolean |
containsAttribute(String name)
Return a flag indicating whether a specified attribute exists
|
char |
getQuoteChar(String name)
Return an attribute's quote character, given its name or
0
if the attribute cannot be found. |
String |
getQuotedValue(String name)
Return an attribute's value, already surrounded with the quotes
originally in place.
|
String |
getValue(String name)
Return an attribute's value, given its name or
null
if the attribute cannot be found. |
boolean |
isModified()
Return a flag indicating whether this object was modified.
|
void |
removeValue(String name)
Remove an attribute's value.
|
void |
setValue(String name,
String value)
Set an attribute's value.
|
int attributeCount()
Iterator<String> attributeNames()
Iterator iterating over the attribute namesboolean containsAttribute(String name)
name - the attribute's nametrue if the specified attribute exists, false otherwiseString getValue(String name)
null
if the attribute cannot be found.name - attribute namechar getQuoteChar(String name)
0
if the attribute cannot be found.name - attribute nameString getQuotedValue(String name)
null if the attribute
cannot be foundname - attribute namevoid setValue(String name, String value)
null, this
is semantically different to a removeValue(String).name - attribute namevalue - attribute valuevoid removeValue(String name)
name - attribute nameboolean isModified()
true if the object was modified
false otherwiseCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.