CLASS_ATTR, ID_ATTR, LINK_STATUS_ATTR, NAME_ATTR, NO_FOLLOW, NON_RENDERING_WHEN_EMPTY, NUL, STYLE_ATTR, TARGET_ATTR, TITLE_ATTR| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(CharSequence value)
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
|
boolean |
equals(Object o) |
String |
getName() |
String |
getValue() |
char |
getValueListDelimiter() |
char |
getValueNameDelimiter() |
int |
hashCode() |
static int |
indexOfValue(CharSequence value,
CharSequence valueName,
char valueListDelimiter,
char valueNameDelimiter) |
boolean |
isNonRendering() |
static AttributeImpl |
of(Attribute other) |
static AttributeImpl |
of(CharSequence attrName) |
static AttributeImpl |
of(CharSequence attrName,
CharSequence value) |
static AttributeImpl |
of(CharSequence attrName,
CharSequence value,
char valueListDelimiter) |
static AttributeImpl |
of(CharSequence attrName,
CharSequence value,
char valueListDelimiter,
char valueNameDelimiter) |
Attribute |
removeValue(CharSequence value)
Add a new value or values depending on list and name delimiter settings and value content.
|
Attribute |
replaceValue(CharSequence value)
Replace the complete value of this attribute by a new value
|
Attribute |
setValue(CharSequence value)
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.
|
MutableAttribute |
toMutable() |
String |
toString() |
public MutableAttribute toMutable()
toMutable in interface Immutable<Attribute,MutableAttribute>public char getValueListDelimiter()
getValueListDelimiter in interface Attributepublic char getValueNameDelimiter()
getValueNameDelimiter in interface Attributepublic boolean isNonRendering()
isNonRendering in interface Attributepublic static int indexOfValue(CharSequence value, CharSequence valueName, char valueListDelimiter, char valueNameDelimiter)
public boolean containsValue(CharSequence value)
AttributecontainsValue in interface Attributevalue - name part of the attribute value list or the value if the attribute does not have a value list delimiterpublic Attribute replaceValue(CharSequence value)
AttributereplaceValue in interface Attributevalue - new valuepublic Attribute setValue(CharSequence value)
Attributepublic Attribute removeValue(CharSequence value)
AttributeremoveValue in interface Attributevalue - value or list of values (if attribute has a list delimiter and name delimiter) to removepublic static AttributeImpl of(Attribute other)
public static AttributeImpl of(CharSequence attrName)
public static AttributeImpl of(CharSequence attrName, CharSequence value)
public static AttributeImpl of(CharSequence attrName, CharSequence value, char valueListDelimiter)
public static AttributeImpl of(CharSequence attrName, CharSequence value, char valueListDelimiter, char valueNameDelimiter)
Copyright © 2019. All rights reserved.