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 Attribute
addValue(Attribute attribute)
Attribute
addValue(java.lang.CharSequence key, java.lang.CharSequence value)
MutableAttributes
addValues(Attributes attributes)
void
clear()
protected java.util.LinkedHashMap<java.lang.String,Attribute>
getAttributes()
Attribute
remove(Attribute attribute)
Attribute
remove(java.lang.CharSequence key)
Attribute
removeValue(Attribute attribute)
Attribute
removeValue(java.lang.CharSequence key, java.lang.CharSequence value)
Attribute
replaceValue(Attribute attribute)
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 valuevoid
replaceValues(MutableAttributes attributes)
Attributes
toImmutable()
MutableAttributes
toMutable()
java.lang.String
toString()
-
-
-
Constructor Detail
-
MutableAttributes
public MutableAttributes()
-
MutableAttributes
public MutableAttributes(Attributes attributes)
-
-
Method Detail
-
toMutable
public MutableAttributes toMutable()
- Overrides:
toMutable
in classAttributes
-
toImmutable
public Attributes toImmutable()
- Overrides:
toImmutable
in 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:
toString
in classAttributes
-
-