cloud.piranha.api.AttributeManager
public class DefaultAttributeManager
extends java.lang.Object
implements cloud.piranha.api.AttributeManager
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
attributes |
Stores the attributes.
|
Constructor | Description |
---|---|
DefaultAttributeManager() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.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.
|
protected java.util.Map<java.lang.String,java.lang.Object> attributes
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface cloud.piranha.api.AttributeManager
name
- the name.public java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames
in interface cloud.piranha.api.AttributeManager
public void removeAttribute(java.lang.String name)
removeAttribute
in interface cloud.piranha.api.AttributeManager
name
- the name.public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface cloud.piranha.api.AttributeManager
name
- the name.value
- the value.Copyright © 2020 Piranha Cloud. All rights reserved.