public interface Attribute extends Immutable<Attribute,MutableAttribute>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_ATTR |
static String |
ID_ATTR |
static String |
LINK_STATUS_ATTR |
static String |
NAME_ATTR |
static Attribute |
NO_FOLLOW |
static Set<String> |
NON_RENDERING_WHEN_EMPTY |
static char |
NUL |
static String |
STYLE_ATTR |
static String |
TARGET_ATTR |
static String |
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
|
String |
getName() |
String |
getValue() |
char |
getValueListDelimiter() |
char |
getValueNameDelimiter() |
boolean |
isNonRendering() |
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.
|
static final String CLASS_ATTR
static final String ID_ATTR
static final String LINK_STATUS_ATTR
static final String NAME_ATTR
static final String STYLE_ATTR
static final String TITLE_ATTR
static final String TARGET_ATTR
static final Attribute NO_FOLLOW
static final char NUL
String getName()
String getValue()
char getValueListDelimiter()
char getValueNameDelimiter()
boolean isNonRendering()
boolean containsValue(CharSequence value)
value - name part of the attribute value list or the value if the attribute does not have a value list delimiterAttribute replaceValue(CharSequence value)
value - new valueAttribute setValue(CharSequence value)
value - value or list of values (if attribute has a list delimiter and name delimiter) to changeAttribute removeValue(CharSequence value)
value - value or list of values (if attribute has a list delimiter and name delimiter) to removeCopyright © 2018. All rights reserved.