public class MutableAttributes extends Attributes
attributes, EMPTY| Constructor and Description |
|---|
MutableAttributes() |
MutableAttributes(Attributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
addValue(Attribute attribute) |
Attribute |
addValue(CharSequence key,
CharSequence value) |
MutableAttributes |
addValues(Attributes attributes) |
void |
clear() |
protected LinkedHashMap<String,Attribute> |
getAttributes() |
Attribute |
remove(Attribute attribute) |
Attribute |
remove(CharSequence key) |
Attribute |
removeValue(Attribute attribute) |
Attribute |
removeValue(CharSequence key,
CharSequence value) |
Attribute |
replaceValue(Attribute 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 value
|
void |
replaceValues(MutableAttributes attributes) |
Attributes |
toImmutable() |
MutableAttributes |
toMutable() |
String |
toString() |
public MutableAttributes()
public MutableAttributes(Attributes attributes)
public MutableAttributes toMutable()
toMutable in class Attributespublic Attributes toImmutable()
toImmutable in class Attributesprotected LinkedHashMap<String,Attribute> getAttributes()
public Attribute replaceValue(CharSequence key, CharSequence value)
key - attribute namevalue - new valuepublic MutableAttributes addValues(Attributes attributes)
public Attribute addValue(CharSequence key, CharSequence value)
public Attribute removeValue(CharSequence key, CharSequence value)
public void clear()
public Attribute remove(CharSequence key)
public void replaceValues(MutableAttributes attributes)
public String toString()
toString in class AttributesCopyright © 2020. All rights reserved.