java.lang.Object | |
↳ | org.jsoup.nodes.Attributes |
The attributes of an Element.
Attributes are treated as a map: there can be only one value associated with an attribute key. Attribute key and value comparisons are done case insensitively, and keys are normalised to lower-case.Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | dataPrefix |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add all the attributes from the incoming set to this set.
| |||||||||||
Get the attributes as a List, for iteration.
| |||||||||||
Retrieves a filtered view of attributes that are HTML5 custom data attributes; that is, attributes with keys
starting with
data- . | |||||||||||
Get an attribute value by key.
| |||||||||||
Tests if these attributes contain an attribute with this key.
| |||||||||||
Get the HTML representation of these attributes.
| |||||||||||
Set a new attribute, or replace an existing one by key.
| |||||||||||
Set a new attribute, or replace an existing one by key.
| |||||||||||
Remove an attribute by key.
| |||||||||||
Get the number of attributes in this set.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Iterable
|
Add all the attributes from the incoming set to this set.
incoming | attributes to add to these attributes. |
---|
Get the attributes as a List, for iteration. Do not modify the keys of the attributes via this view, as changes to keys will not be recognised in the containing set.
Retrieves a filtered view of attributes that are HTML5 custom data attributes; that is, attributes with keys
starting with data-
.
Get an attribute value by key.
key | the attribute key |
---|
Tests if these attributes contain an attribute with this key.
key | key to check for |
---|
Set a new attribute, or replace an existing one by key.
attribute | attribute |
---|
Set a new attribute, or replace an existing one by key.
key | attribute key |
---|---|
value | attribute value |
Get the number of attributes in this set.