Package com.vladsch.flexmark.util.html
Class MutableAttributes
java.lang.Object
com.vladsch.flexmark.util.html.Attributes
com.vladsch.flexmark.util.html.MutableAttributes
-
Field Summary
Fields inherited from class com.vladsch.flexmark.util.html.Attributes
attributes, EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValue
(CharSequence key, CharSequence value) addValues
(Attributes attributes) void
clear()
protected LinkedHashMap
<String, Attribute> remove
(CharSequence key) removeValue
(Attribute attribute) removeValue
(CharSequence key, CharSequence value) replaceValue
(Attribute attribute) replaceValue
(CharSequence key, CharSequence value) Attribute dependent value replacement class and style append new values to existing ones others set it to the new valuevoid
replaceValues
(MutableAttributes attributes) toString()
-
Constructor Details
-
MutableAttributes
public MutableAttributes() -
MutableAttributes
-
-
Method Details
-
toMutable
- Overrides:
toMutable
in classAttributes
-
toImmutable
- Overrides:
toImmutable
in classAttributes
-
getAttributes
-
replaceValue
-
replaceValue
Attribute dependent value replacement class and style append new values to existing ones others set it to the new value- Parameters:
key
- attribute namevalue
- new value- Returns:
- new attribute
-
addValue
-
addValues
-
addValue
-
removeValue
-
remove
-
removeValue
-
clear
public void clear() -
remove
-
replaceValues
-
toString
- Overrides:
toString
in classAttributes
-