Uses of Class
org.jsoup.nodes.Attributes
Packages that use Attributes
Package
Description
HTML document structure nodes.
Contains the jsoup HTML cleaner, and safelist definitions.
-
Uses of Attributes in org.jsoup.nodes
Methods in org.jsoup.nodes that return AttributesModifier and TypeMethodDescriptionAttributes.add(String key, @Nullable String value) Adds a new attribute.Element.attributes()final AttributesLeafNode.attributes()abstract AttributesNode.attributes()Get each of the Element's attributes.Attributes.clone()Attributes.put(String key, boolean value) Set a new boolean attribute.Attributes.put(String key, @Nullable String value) Set a new attribute, or replace an existing one by key.Set a new attribute, or replace an existing one by key.Attributes.sourceRange(String key, Range.AttributeRange range) Set the source ranges (start to end position) from which this attribute's name and value were parsed.Attributes.userData(String key, @Nullable Object value) Set an arbitrary user-data object by key.Methods in org.jsoup.nodes with parameters of type AttributesModifier and TypeMethodDescriptionvoidAttributes.addAll(Attributes incoming) Add all the attributes from the incoming set to this set.Constructors in org.jsoup.nodes with parameters of type AttributesModifierConstructorDescriptionAttribute(String key, @Nullable String val, @Nullable Attributes parent) Create a new attribute from unencoded (raw) key and value.Element(Tag tag, @Nullable String baseUri, @Nullable Attributes attributes) Create a new, standalone Element.FormElement(Tag tag, @Nullable String baseUri, @Nullable Attributes attributes) Create a new, standalone form element.PseudoTextElement(Tag tag, String baseUri, Attributes attributes) Deprecated. -
Uses of Attributes in org.jsoup.safety
Methods in org.jsoup.safety that return AttributesModifier and TypeMethodDescriptionSafelist.getEnforcedAttributes(String tagName) Gets the Attributes that should be enforced for a given tag