Interface IAttributes

All Superinterfaces:
Iterable<IAttribute>
All Known Implementing Classes:
JsoupAttributes

public interface IAttributes extends Iterable<IAttribute>
Interface for a series of HTML attributes.
  • Method Details

    • getAttribute

      String getAttribute (String key)
      Gets the value of an attribute, given a key.
      Parameters:
      key - the key
      Returns:
      the attribute
    • setAttribute

      void setAttribute (String key, String value)
      Adds a key and a value of an attributes.
      Parameters:
      key - the key
      value - the value
    • size

      int size()
      Returns the number of attributes.
      Returns:
      the number of attributes