public interface Attributes
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String name,
Set<String> values,
boolean replace)
Add the specified attribute to the attributes collection.
|
void |
addAttribute(String name,
String[] values,
boolean replace)
Add the specified attribute to the attributes collection.
|
void |
addAttribute(String name,
String value,
boolean replace)
Add the specified attribute to the attributes collection.
|
void |
clear()
Removes all attributes from the collection.
|
Attribute |
getAttribute(String name)
Get the Attribute object for the named attribute, if present.
|
int |
getAttributeCount()
Get a count of the number of Attributes (not attribute values) in this Attributes object.
|
Set<String> |
getAttributeNames()
Get the attribute names, as a Set.
|
String |
getAttributeValue(String name)
Get the value of the specified attribute, if present.
|
Set<String> |
getAttributeValues(String name)
Get the Set of values for the specified attribute, if present.
|
String[] |
getAttributeValuesAsArray(String name)
Get the set of values for the specified attribute as a String array.
|
void |
removeAllAttributeValues(String name)
Remove all values associated with the named attribute, but do not remove
the attribute from the collection.
|
void |
removeAttribute(String name)
Remove the specified attribute from the collection.
|
void |
removeAttributeValue(String name,
String value)
Remove the specified value from the named attribute.
|
void |
removeAttributeValues(String name,
Set<String> values)
Remove the specified values from the named attribute.
|
void |
removeAttributeValues(String name,
String[] values)
Remove the specified values from the named attribute.
|
int getAttributeCount()
Set<String> getAttributeNames()
Attribute getAttribute(String name)
name - The name of the Attribute to get.String getAttributeValue(String name)
name - The name of the attribute whose value is wanted.Set<String> getAttributeValues(String name)
name - The name of the attribute whose values are wanted.String[] getAttributeValuesAsArray(String name)
name - The name of the attribute whose values are wanted.void addAttribute(String name, String value, boolean replace)
name - The name of the attribute to add.value - The single attribute value to add.replace - If true, replace the existing attribute and any existing values. If false,
add the new value to those that are already present.void addAttribute(String name, Set<String> values, boolean replace)
name - The name of the attribute to add.value - The Set of values to add.replace - If true, replace the existing attribute and any existing values. If false,
add the new values to those that are already present.void addAttribute(String name, String[] values, boolean replace)
name - The name of the attribute to add.value - The array of values to add.replace - If true, replace the existing attribute and any existing values. If false,
add the new values to those that are already present.void removeAttribute(String name)
name - The name of the attribute to remove.void removeAttributeValue(String name, String value)
name - The name of the attribute from which to remove a value.value - The value to remove. A value will be removed only if it exactly matches this parameter.void removeAttributeValues(String name, Set<String> values)
name - The name of the attribute from which to remove the values.value - The Set of values to remove. Only values that exactly match values in this Set will be removed.void removeAttributeValues(String name, String[] values)
name - The name of the attribute from which to remove the values.value - The array of values to remove. Only values that exactly match values in this array will be removed.void removeAllAttributeValues(String name)
name - The name of the attribute whose values should be removed.void clear()
Copyright © 2013. All Rights Reserved.