Interface IAttributes
- All Superinterfaces:
-
Iterable<IAttribute>
- All Known Implementing Classes:
-
JsoupAttributes
Interface for a series of HTML attributes.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) Gets the value of an attribute, given a key.void
setAttribute
(String key, String value) Adds a key and a value of an attributes.int
size()
Returns the number of attributes.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getAttribute
Gets the value of an attribute, given a key.- Parameters:
-
key
- the key - Returns:
- the attribute
-
setAttribute
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
-