Interface AttributeList
public interface AttributeList
Contains the list of attributes inside an HTML tag.
- 
Method SummaryModifier and TypeMethodDescriptionintReturn the count of attributesReturn the list of attribute namesbooleancontainsAttribute(String name) Return a flag indicating whether a specified attribute existschargetQuoteChar(String name) Return an attribute's quote character, given its name or0if the attribute cannot be found.getQuotedValue(String name) Return an attribute's value, already surrounded with the quotes originally in place.Return an attribute's value, given its name ornullif the attribute cannot be found.booleanReturn a flag indicating whether this object was modified.voidremoveValue(String name) Remove an attribute's value.voidSet an attribute's value.
- 
Method Details- 
attributeCountint attributeCount()Return the count of attributes- Returns:
- count of attributes
 
- 
attributeNamesReturn the list of attribute names- Returns:
- Iteratoriterating over the attribute names
 
- 
containsAttributeReturn a flag indicating whether a specified attribute exists- Parameters:
- name- the attribute's name
- Returns:
- trueif the specified attribute exists,- falseotherwise
 
- 
getValueReturn an attribute's value, given its name ornullif the attribute cannot be found.- Parameters:
- name- attribute name
- Returns:
- an attribute's value
 
- 
getQuoteCharReturn an attribute's quote character, given its name or0if the attribute cannot be found.- Parameters:
- name- attribute name
- Returns:
- an attribute's quote character
 
- 
getQuotedValueReturn an attribute's value, already surrounded with the quotes originally in place. Returnsnullif the attribute cannot be found- Parameters:
- name- attribute name
- Returns:
- an attribute's value
 
- 
setValueSet an attribute's value. If the value isnull, this is semantically different to aremoveValue(String).- Parameters:
- name- attribute name
- value- attribute value
 
- 
removeValueRemove an attribute's value.- Parameters:
- name- attribute name
 
- 
isModifiedboolean isModified()Return a flag indicating whether this object was modified.- Returns:
- trueif the object was modified- falseotherwise
 
 
-