| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private String | |
| private final char | |
| private final char | |
| private LinkedHashMap |
| Access | Constructor and Description |
|---|---|
| private | MutableAttributeImpl(CharSequence name, CharSequence value, char valueListDelimiter, char valueNameDelimiter)
|
| Modifier and Type | Method 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)Implements com. 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 | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| private void | |
| public String | |
| public String | |
| public char | |
| protected Map | |
| public char | |
| public int | |
| public boolean | |
| public static MutableAttributeImpl | |
| public static MutableAttributeImpl | |
| public static MutableAttributeImpl | |
| public static MutableAttributeImpl | |
| public static MutableAttributeImpl | |
| public MutableAttributeImpl | removeValue(CharSequence
value or list of values (if attribute has a list delimiter and name delimiter) to remove value)Implements com. Add a new value or values depending on list and name delimiter settings and value content. |
| public MutableAttributeImpl | replaceValue(CharSequence
new value value)Implements com. Replace the complete value of this attribute by a new value |
| public void | |
| public MutableAttributeImpl | setValue(CharSequence
value or list of values (if attribute has a list delimiter and name delimiter) to change value)Implements com. 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. |
| public Attribute | |
| public MutableAttribute | |
| public String | |
| protected String | Returns: string for value of this attribute from mapReturn the attribute value string by splicing the values of the map using valueListDelimiter and valueNameDelimiter with replacements of the given name/value if provided. |
| name | back to summary |
|---|---|
| private final String name | |
| value | back to summary |
|---|---|
| private String value | |
| valueListDelimiter | back to summary |
|---|---|
| private final char valueListDelimiter | |
| valueNameDelimiter | back to summary |
|---|---|
| private final char valueNameDelimiter | |
| values | back to summary |
|---|---|
| private LinkedHashMap<String, String> values | |
| MutableAttributeImpl | back to summary |
|---|---|
| private MutableAttributeImpl(CharSequence name, CharSequence value, char valueListDelimiter, char valueNameDelimiter) | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(CharSequence value) Implements com. Doc from com. 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
| |
| copy | back to summary |
|---|---|
| public MutableAttribute copy() Implements com.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forEachValue | back to summary |
|---|---|
| private void forEachValue(CharSequence value, BiConsumer<String, String> consumer) | |
| getName | back to summary |
|---|---|
| public String getName() Implements com.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements com.
| |
| getValueListDelimiter | back to summary |
|---|---|
| public char getValueListDelimiter() Implements com.
| |
| getValueMap | back to summary |
|---|---|
protected Map
| |
| getValueNameDelimiter | back to summary |
|---|---|
| public char getValueNameDelimiter() Implements com.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isNonRendering | back to summary |
|---|---|
| public boolean isNonRendering() Implements com.
| |
| of | back to summary |
|---|---|
| public static MutableAttributeImpl of(Attribute other) | |
| of | back to summary |
|---|---|
| public static MutableAttributeImpl of(CharSequence attrName) | |
| of | back to summary |
|---|---|
| public static MutableAttributeImpl of(CharSequence attrName, CharSequence value) | |
| of | back to summary |
|---|---|
| public static MutableAttributeImpl of(CharSequence attrName, CharSequence value, char valueListDelimiter) | |
| of | back to summary |
|---|---|
| public static MutableAttributeImpl of(CharSequence attrName, CharSequence value, char valueListDelimiter, char valueNameDelimiter) | |
| removeValue | back to summary |
|---|---|
| public MutableAttributeImpl removeValue(CharSequence value) Implements com. Doc from com. 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
| |
| replaceValue | back to summary |
|---|---|
| public MutableAttributeImpl replaceValue(CharSequence value) Implements com. Doc from com. Replace the complete value of this attribute by a new value
| |
| resetToValuesMap | back to summary |
|---|---|
| public void resetToValuesMap() | |
| setValue | back to summary |
|---|---|
| public MutableAttributeImpl setValue(CharSequence value) Implements com. Doc from com. 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.
| |
| toImmutable | back to summary |
|---|---|
| public Attribute toImmutable() Implements com.
| |
| toMutable | back to summary |
|---|---|
| public MutableAttribute toMutable() Implements com.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| valueFromMap | back to summary |
|---|---|
| protected String valueFromMap() Return the attribute value string by splicing the values of the map using valueListDelimiter and valueNameDelimiter with replacements of the given name/value if provided. If the name is not empty and value is empty then this will be removed from the final string
| |