Interface AttributeList


  • @Deprecated
    public interface AttributeList
    Deprecated.
    This is replaced by the Apache Sling Html parsing.
    Contains the list of attributes inside an HTML tag.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      int attributeCount()
      Deprecated.
      Return the count of attributes
      java.util.Iterator<java.lang.String> attributeNames()
      Deprecated.
      Return the list of attribute names
      boolean containsAttribute​(java.lang.String name)
      Deprecated.
      Return a flag indicating whether a specified attribute exists
      char getQuoteChar​(java.lang.String name)
      Deprecated.
      Return an attribute's quote character, given its name or 0 if the attribute cannot be found.
      java.lang.String getQuotedValue​(java.lang.String name)
      Deprecated.
      Return an attribute's value, already surrounded with the quotes originally in place.
      java.lang.String getValue​(java.lang.String name)
      Deprecated.
      Return an attribute's value, given its name or null if the attribute cannot be found.
      boolean isModified()
      Deprecated.
      Return a flag indicating whether this object was modified.
      void removeValue​(java.lang.String name)
      Deprecated.
      Remove an attribute's value.
      void setValue​(java.lang.String name, java.lang.String value)
      Deprecated.
      Set an attribute's value.
    • Method Detail

      • attributeCount

        int attributeCount()
        Deprecated.
        Return the count of attributes
        Returns:
        count of attributes
      • attributeNames

        java.util.Iterator<java.lang.String> attributeNames()
        Deprecated.
        Return the list of attribute names
        Returns:
        Iterator iterating over the attribute names
      • containsAttribute

        boolean containsAttribute​(java.lang.String name)
        Deprecated.
        Return a flag indicating whether a specified attribute exists
        Parameters:
        name - name of the attribute
        Returns:
        true if the specified attribute exists, false otherwise
      • getValue

        java.lang.String getValue​(java.lang.String name)
        Deprecated.
        Return an attribute's value, given its name or null if the attribute cannot be found.
        Parameters:
        name - attribute name
        Returns:
        an attribute's value
      • getQuoteChar

        char getQuoteChar​(java.lang.String name)
        Deprecated.
        Return an attribute's quote character, given its name or 0 if the attribute cannot be found.
        Parameters:
        name - attribute name
        Returns:
        an attribute's quote character
      • getQuotedValue

        java.lang.String getQuotedValue​(java.lang.String name)
        Deprecated.
        Return an attribute's value, already surrounded with the quotes originally in place. Returns null if the attribute cannot be found
        Parameters:
        name - attribute name
        Returns:
        an attribute's value
      • setValue

        void setValue​(java.lang.String name,
                      java.lang.String value)
        Deprecated.
        Set an attribute's value. If the value is null, this is semantically different to a removeValue(String).
        Parameters:
        name - attribute name
        value - attribute value
      • removeValue

        void removeValue​(java.lang.String name)
        Deprecated.
        Remove an attribute's value.
        Parameters:
        name - attribute name
      • isModified

        boolean isModified()
        Deprecated.
        Return a flag indicating whether this object was modified.
        Returns:
        true if the object was modified false otherwise