- All Known Implementing Classes:
DefaultAttributeManager
public interface AttributeManager
The AttributeManager API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and Type Method Description default boolean
containsAttribute(java.lang.String name)
Checks if this manager has the given attributejava.lang.Object
getAttribute(java.lang.String name)
Get the attribute.java.util.Enumeration<java.lang.String>
getAttributeNames()
Get the attribute names.void
removeAttribute(java.lang.String name)
Remove the attribute.void
setAttribute(java.lang.String name, java.lang.Object value)
Set the attribute.
-
Method Details
-
getAttribute
java.lang.Object getAttribute(java.lang.String name)Get the attribute.- Parameters:
name
- the name.- Returns:
- the value.
-
getAttributeNames
java.util.Enumeration<java.lang.String> getAttributeNames()Get the attribute names.- Returns:
- the attribute names.
-
removeAttribute
void removeAttribute(java.lang.String name)Remove the attribute.- Parameters:
name
- the name.
-
setAttribute
void setAttribute(java.lang.String name, java.lang.Object value)Set the attribute.- Parameters:
name
- the name.value
- the value.
-
containsAttribute
default boolean containsAttribute(java.lang.String name)Checks if this manager has the given attribute- Parameters:
name
- the name of the attribute to check for- Returns:
- true if this manager contains the attribute, false otherwise
-