Package com.day.cq.rewriter.htmlparser
Interface AttributeList
Deprecated.
This is replaced by the Apache Sling Html parsing.
Contains the list of attributes inside an HTML tag.
-
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Return the count of attributesDeprecated.Return the list of attribute namesbooleancontainsAttribute(String name) Deprecated.Return a flag indicating whether a specified attribute existschargetQuoteChar(String name) Deprecated.Return an attribute's quote character, given its name or0if the attribute cannot be found.getQuotedValue(String name) Deprecated.Return an attribute's value, already surrounded with the quotes originally in place.Deprecated.Return an attribute's value, given its name ornullif the attribute cannot be found.booleanDeprecated.Return a flag indicating whether this object was modified.voidremoveValue(String name) Deprecated.Remove an attribute's value.voidDeprecated.Set an attribute's value.
-
Method Details
-
attributeCount
int attributeCount()Deprecated.Return the count of attributes- Returns:
- count of attributes
-
attributeNames
Deprecated.Return the list of attribute names- Returns:
Iteratoriterating over the attribute names
-
containsAttribute
Deprecated.Return a flag indicating whether a specified attribute exists- Parameters:
name- name of the attribute- Returns:
trueif the specified attribute exists,falseotherwise
-
getValue
Deprecated.Return an attribute's value, given its name ornullif the attribute cannot be found.- Parameters:
name- attribute name- Returns:
- an attribute's value
-
getQuoteChar
Deprecated.Return an attribute's quote character, given its name or0if the attribute cannot be found.- Parameters:
name- attribute name- Returns:
- an attribute's quote character
-
getQuotedValue
Deprecated.Return 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
-
setValue
Deprecated.Set an attribute's value. If the value isnull, this is semantically different to aremoveValue(String).- Parameters:
name- attribute namevalue- attribute value
-
removeValue
Deprecated.Remove an attribute's value.- Parameters:
name- attribute name
-
isModified
boolean isModified()Deprecated.Return a flag indicating whether this object was modified.- Returns:
trueif the object was modifiedfalseotherwise
-