java.lang.Object
cloud.piranha.webapp.impl.DefaultAttributeManager
- All Implemented Interfaces:
AttributeManager
The default AttributeManager.
- Author:
- Manfred Riem ([email protected])
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsAttribute(String name)
Checks if this manager has the given attributegetAttribute(String name)
Get the attribute.Returns the attribute names.void
removeAttribute(String name)
Remove the attribute.void
setAttribute(String name, Object value)
Set the attribute.
-
Field Details
-
attributes
Stores the attributes.
-
-
Constructor Details
-
DefaultAttributeManager
public DefaultAttributeManager()Constructor.
-
-
Method Details
-
getAttribute
Description copied from interface:AttributeManager
Get the attribute.- Specified by:
getAttribute
in interfaceAttributeManager
- Parameters:
name
- the name.- Returns:
- the value.
-
getAttributeNames
Description copied from interface:AttributeManager
Returns the attribute names.- Specified by:
getAttributeNames
in interfaceAttributeManager
- Returns:
- the attribute names
-
removeAttribute
Description copied from interface:AttributeManager
Remove the attribute.- Specified by:
removeAttribute
in interfaceAttributeManager
- Parameters:
name
- the name.
-
setAttribute
Description copied from interface:AttributeManager
Set the attribute.- Specified by:
setAttribute
in interfaceAttributeManager
- Parameters:
name
- the name.value
- the value.
-
containsAttribute
Description copied from interface:AttributeManager
Checks if this manager has the given attribute- Specified by:
containsAttribute
in interfaceAttributeManager
- Parameters:
name
- the name of the attribute to check for- Returns:
- true if this manager contains the attribute, false otherwise
-