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(java.lang.CharSequence key, java.lang.CharSequence value)MutableAttributesaddValues(Attributes attributes)voidclear()protected java.util.LinkedHashMap<java.lang.String,Attribute>getAttributes()Attributeremove(Attribute attribute)Attributeremove(java.lang.CharSequence key)AttributeremoveValue(Attribute attribute)AttributeremoveValue(java.lang.CharSequence key, java.lang.CharSequence value)AttributereplaceValue(Attribute attribute)AttributereplaceValue(java.lang.CharSequence key, java.lang.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()java.lang.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 java.util.LinkedHashMap<java.lang.String,Attribute> getAttributes()
-
replaceValue
public Attribute replaceValue(java.lang.CharSequence key, java.lang.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(java.lang.CharSequence key, java.lang.CharSequence value)
-
removeValue
public Attribute removeValue(java.lang.CharSequence key, java.lang.CharSequence value)
-
clear
public void clear()
-
remove
public Attribute remove(java.lang.CharSequence key)
-
replaceValues
public void replaceValues(MutableAttributes attributes)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAttributes
-
-