AttributeManager
public class DefaultAttributeManager extends Object implements AttributeManager
Modifier and Type | Field | Description |
---|---|---|
protected Map<String,Object> |
attributes |
Stores the attributes.
|
Constructor | Description |
---|---|
DefaultAttributeManager() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
getAttribute(String name) |
Get the attribute.
|
Enumeration<String> |
getAttributeNames() |
Get the attribute names.
|
void |
removeAttribute(String name) |
Remove the attribute.
|
void |
setAttribute(String name,
Object value) |
Set the attribute.
|
public Object getAttribute(String name)
getAttribute
in interface AttributeManager
name
- the name.public Enumeration<String> getAttributeNames()
getAttributeNames
in interface AttributeManager
public void removeAttribute(String name)
removeAttribute
in interface AttributeManager
name
- the name.public void setAttribute(String name, Object value)
setAttribute
in interface AttributeManager
name
- the name.value
- the value.Copyright © 2020 Piranha Cloud. All rights reserved.