Package com.vladsch.flexmark.util.html
Class MutableAttributes
- java.lang.Object
-
- com.vladsch.flexmark.util.html.Attributes
-
- com.vladsch.flexmark.util.html.MutableAttributes
-
public class MutableAttributes extends Attributes
-
-
Field Summary
-
Fields inherited from class com.vladsch.flexmark.util.html.Attributes
attributes, EMPTY
-
-
Constructor Summary
Constructors Constructor Description MutableAttributes()MutableAttributes(Attributes attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeaddValue(Attribute attribute)AttributeaddValue(CharSequence key, CharSequence value)MutableAttributesaddValues(Attributes attributes)voidclear()protected LinkedHashMap<String,Attribute>getAttributes()Attributeremove(Attribute attribute)Attributeremove(CharSequence key)AttributeremoveValue(Attribute attribute)AttributeremoveValue(CharSequence key, CharSequence value)AttributereplaceValue(Attribute attribute)AttributereplaceValue(CharSequence key, CharSequence value)Attribute dependent value replacement class and style append new values to existing ones others set it to the new valuevoidreplaceValues(MutableAttributes attributes)AttributestoImmutable()MutableAttributestoMutable()StringtoString()
-
-
-
Constructor Detail
-
MutableAttributes
public MutableAttributes()
-
MutableAttributes
public MutableAttributes(Attributes attributes)
-
-
Method Detail
-
toMutable
public MutableAttributes toMutable()
- Overrides:
toMutablein classAttributes
-
toImmutable
public Attributes toImmutable()
- Overrides:
toImmutablein classAttributes
-
getAttributes
protected LinkedHashMap<String,Attribute> getAttributes()
-
replaceValue
public 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 value- Parameters:
key- attribute namevalue- new value- Returns:
- new attribute
-
addValues
public MutableAttributes addValues(Attributes attributes)
-
addValue
public Attribute addValue(CharSequence key, CharSequence value)
-
removeValue
public Attribute removeValue(CharSequence key, CharSequence value)
-
clear
public void clear()
-
remove
public Attribute remove(CharSequence key)
-
replaceValues
public void replaceValues(MutableAttributes attributes)
-
toString
public String toString()
- Overrides:
toStringin classAttributes
-
-