|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.modeler.BaseAttributeFilter
Implementation of NotificationFilter
for attribute change
notifications. This class is used by BaseModelMBean
to
construct attribute change notification event filters when a filter is not
supplied by the application.
Field Summary | |
private java.util.HashSet |
names
The set of attribute names that are accepted by this filter. |
Constructor Summary | |
BaseAttributeFilter(java.lang.String name)
Construct a new filter that accepts only the specified attribute name. |
Method Summary | |
void |
addAttribute(java.lang.String name)
Add a new attribute name to the set of names accepted by this filter. |
void |
clear()
Clear all accepted names from this filter, so that it will accept all attribute names. |
java.lang.String[] |
getNames()
Return the set of names that are accepted by this filter. |
boolean |
isNotificationEnabled(Notification notification)
Test whether notification enabled for this event. |
void |
removeAttribute(java.lang.String name)
Remove an attribute name from the set of names accepted by this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.HashSet names
Constructor Detail |
public BaseAttributeFilter(java.lang.String name)
name
- Name of the attribute to be accepted by this filter, or
null
to accept all attribute namesMethod Detail |
public void addAttribute(java.lang.String name)
name
- Name of the attribute to be acceptedpublic void clear()
public java.lang.String[] getNames()
public boolean isNotificationEnabled(Notification notification)
Test whether notification enabled for this event. Return true if:
public void removeAttribute(java.lang.String name)
name
- Name of the attribute to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |