|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeAware
This interface is just for internal use. It should ensure that refactorings don't lead to different method-names for the same purpose. Furthermore, it allows to easily find all artifacts which allow generic attributes.
Method Summary | ||
---|---|---|
boolean |
containsAttribute(String name)
Returns true if there is a value for the given name |
|
|
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 |
Method Detail |
---|
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 value
boolean containsAttribute(String name)
name
- name of the argument in question
<T> T getAttribute(String name, Class<T> targetType)
T
- current typename
- name of the attributetargetType
- type of the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |