public interface AttributeAware extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
containsAttribute(String name)
Returns true if there is a value for the given name
|
<T> T |
getAttribute(String name,
Class<T> targetType)
Exposes the value for the given name
|
boolean |
setAttribute(String name,
Object value)
Sets an attribute
|
boolean |
setAttribute(String name,
Object value,
boolean forceOverride)
Sets or updates an attribute
|
boolean setAttribute(String name, Object value)
name
- name of the attributevalue
- value of the attribute (null values aren't allowed)boolean setAttribute(String name, Object value, boolean forceOverride)
name
- name of the attributevalue
- value of the attributeforceOverride
- flag which indicates if it is permitted to override an existing valueboolean containsAttribute(String name)
name
- name of the argument in questionCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.