org.apache.commons.modeler
public class BaseAttributeFilter extends Object implements NotificationFilter
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.
Version: $Revision: 155428 $ $Date: 2005-02-26 08:12:25 -0500 (Sat, 26 Feb 2005) $
| Field Summary | |
|---|---|
| HashSet | names
The set of attribute names that are accepted by this filter. |
| Constructor Summary | |
|---|---|
| BaseAttributeFilter(String name)
Construct a new filter that accepts only the specified attribute
name.
| |
| Method Summary | |
|---|---|
| void | addAttribute(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. |
| 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(String name)
Remove an attribute name from the set of names accepted by this
filter.
|
Parameters: name Name of the attribute to be accepted by this filter, or
null to accept all attribute names
Parameters: name Name of the attribute to be accepted
Test whether notification enabled for this event. Return true if:
Parameters: name Name of the attribute to be removed