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

public Interface MutableAttribute

extends Attribute, Mutable<MutableAttribute, Attribute>
Known Direct Implementers
com.vladsch.flexmark.util.html.MutableAttributeImpl
Imports
com.vladsch.flexmark.util.misc.Mutable

Field Summary

Inherited from com.vladsch.flexmark.util.html.Attribute:
CLASS_ATTRID_ATTRLINK_STATUS_ATTRNAME_ATTRNO_FOLLOWNON_RENDERING_WHEN_EMPTYNULSTYLE_ATTRTARGET_ATTRTITLE_ATTR

Method Summary

Modifier and TypeMethod and Description
public boolean
containsValue(CharSequence
name part of the attribute value list or the value if the attribute does not have a value list delimiter
value
)

Redeclares com.vladsch.flexmark.util.html.Attribute.containsValue.

See if the attribute contains the value (if attribute has list delimiter set) or is equal to the value if no list delimiter is set

public MutableAttribute
copy()

public MutableAttribute
removeValue(CharSequence
value or list of values (if attribute has a list delimiter and name delimiter) to remove
value
)

Redeclares com.vladsch.flexmark.util.html.Attribute.removeValue.

Add a new value or values depending on list and name delimiter settings and value content.

public MutableAttribute
replaceValue(CharSequence
new value
value
)

Redeclares com.vladsch.flexmark.util.html.Attribute.replaceValue.

Replace the complete value of this attribute by a new value

public MutableAttribute
setValue(CharSequence
value or list of values (if attribute has a list delimiter and name delimiter) to change
value
)

Redeclares com.vladsch.flexmark.util.html.Attribute.setValue.

Add a new value or values depending on list and name delimiter settings and value content

If the attribute does not have a list delimiter then its value will be set to the given value.

Inherited from com.vladsch.flexmark.util.html.Attribute:
getNamegetValuegetValueListDelimitergetValueNameDelimiterisNonRendering
Inherited from com.vladsch.flexmark.util.misc.Mutable:
toImmutable

Method Detail

containsValueback to summary
public boolean containsValue(CharSequence value)

Redeclares com.vladsch.flexmark.util.html.Attribute.containsValue.

Doc from com.vladsch.flexmark.util.html.Attribute.containsValue.

See if the attribute contains the value (if attribute has list delimiter set) or is equal to the value if no list delimiter is set

Parameters
value:CharSequence

name part of the attribute value list or the value if the attribute does not have a value list delimiter

Returns:boolean

true if the attribute contains the valueName

copyback to summary
public MutableAttribute copy()
removeValueback to summary
public MutableAttribute removeValue(CharSequence value)

Redeclares com.vladsch.flexmark.util.html.Attribute.removeValue.

Doc from com.vladsch.flexmark.util.html.Attribute.removeValue.

Add a new value or values depending on list and name delimiter settings and value content.

If the attribute does not have a list delimiter and its value is equal to the given value then its value is set to empty

If the attribute has a list delimiter but not name delimiter then value will be split by list delimiter and any values in attribute's value list will be removed

If the attribute has a list delimiter and a name delimiter then value will be split by list delimiter and only the name portion of each value will be used for removal from the attribute's value list

Parameters
value:CharSequence

value or list of values (if attribute has a list delimiter and name delimiter) to remove

Returns:MutableAttribute

new attribute or same attribute if nothing changed or attribute is mutable

replaceValueback to summary
public MutableAttribute replaceValue(CharSequence value)

Redeclares com.vladsch.flexmark.util.html.Attribute.replaceValue.

Doc from com.vladsch.flexmark.util.html.Attribute.replaceValue.

Replace the complete value of this attribute by a new value

Parameters
value:CharSequence

new value

Returns:MutableAttribute

new attribute or same attribute if nothing changed or attribute is mutable

setValueback to summary
public MutableAttribute setValue(CharSequence value)

Redeclares com.vladsch.flexmark.util.html.Attribute.setValue.

Doc from com.vladsch.flexmark.util.html.Attribute.setValue.

Add a new value or values depending on list and name delimiter settings and value content

If the attribute does not have a list delimiter then its value will be set to the given value.

If the attribute has a list delimiter but not name delimiter then value will be split by list delimiter and all values will be added to the attribute's value list. New ones added at the end, old ones left as is.

If the attribute has a list delimiter and a name delimiter then value will be split by list delimiter and the name portion of each value will be used to find duplicates whose value will be replaced. New ones added at the end, old ones left where they are but with a new value.

Parameters
value:CharSequence

value or list of values (if attribute has a list delimiter and name delimiter) to change

Returns:MutableAttribute

new attribute or same attribute if nothing changed or attribute is mutable