Top Fields Constructors Methods
com.vladsch.flexmark.util.html

public Class MutableAttributes

extends Attributes
Class Inheritance
Imports
java.util.LinkedHashMap

Field Summary

Inherited from com.vladsch.flexmark.util.html.Attributes:
attributesEMPTY

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Attribute
addValue(Attribute attribute)

public Attribute
public MutableAttributes
addValues(Attributes attributes)

public void
protected LinkedHashMap<String, Attribute>
public Attribute
remove(Attribute attribute)

public Attribute
public Attribute
public Attribute
public Attribute
public Attribute

Returns:

new attribute
replaceValue
(CharSequence
attribute name
key
,
CharSequence
new value
value
)

Attribute dependent value replacement class and style append new values to existing ones others set it to the new value

public void
public Attributes
public MutableAttributes
public String
toString()

Overrides com.vladsch.flexmark.util.html.Attributes.toString.

Returns a string representation of the object.

Inherited from com.vladsch.flexmark.util.html.Attributes:
containscontainsValueentrySetforEachgetgetValueisEmptykeySetsizevalues

Constructor Detail

MutableAttributesback to summary
public MutableAttributes()
MutableAttributesback to summary
public MutableAttributes(Attributes attributes)

Method Detail

addValueback to summary
public Attribute addValue(Attribute attribute)
addValueback to summary
public Attribute addValue(CharSequence key, CharSequence value)
addValuesback to summary
public MutableAttributes addValues(Attributes attributes)
clearback to summary
public void clear()
getAttributesback to summary
protected LinkedHashMap<String, Attribute> getAttributes()
removeback to summary
public Attribute remove(Attribute attribute)
removeback to summary
public Attribute remove(CharSequence key)
removeValueback to summary
public Attribute removeValue(Attribute attribute)
removeValueback to summary
public Attribute removeValue(CharSequence key, CharSequence value)
replaceValueback to summary
public Attribute replaceValue(Attribute attribute)
replaceValueback to summary
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:CharSequence

attribute name

value:CharSequence

new value

Returns:Attribute

new attribute

replaceValuesback to summary
public void replaceValues(MutableAttributes attributes)
toImmutableback to summary
public Attributes toImmutable()

Overrides com.vladsch.flexmark.util.html.Attributes.toImmutable.

Annotations
@Override
toMutableback to summary
public MutableAttributes toMutable()

Overrides com.vladsch.flexmark.util.html.Attributes.toMutable.

Annotations
@Override
toStringback to summary
public String toString()

Overrides com.vladsch.flexmark.util.html.Attributes.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override