NotificationFilter
interface for the attribute change notification.
The filtering is performed on the name of the observed attribute.
It manages a list of enabled attribute names. A method allows users to enable/disable as many attribute names as required.
| Modifier and Type | Field and Description |
|---|---|
| private Vector | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized void | disableAttribute(String
The attribute name. name)Disables all the attribute change notifications the attribute name of which equals the specified attribute name to be sent to the listener. |
| public synchronized void | enableAttribute(String
The attribute name. name)Enables all the attribute change notifications the attribute name of which equals the specified name to be sent to the listener. |
| public synchronized Vector | Returns: The list containing all the enabled attribute names.Gets all the enabled attribute names for this filter. |
| public synchronized boolean | Returns: true if the notification has to be sent to the listener, false otherwise.The attribute change notification to be sent. notification)Implements javax. Invoked before sending the specified notification to the listener. |
| enabledAttributes | back to summary |
|---|---|
| private Vector<String> enabledAttributes | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AttributeChangeNotificationFilter | back to summary |
|---|---|
| public AttributeChangeNotificationFilter() Constructs an | |
| disableAllAttributes | back to summary |
|---|---|
| public synchronized void disableAllAttributes() Disables all the attribute names. | |
| disableAttribute | back to summary |
|---|---|
| public synchronized void disableAttribute(String name) Disables all the attribute change notifications the attribute name of which equals
the specified attribute name to be sent to the listener.
| |
| enableAttribute | back to summary |
|---|---|
| public synchronized void enableAttribute(String name) throws IllegalArgumentException Enables all the attribute change notifications the attribute name of which equals
the specified name to be sent to the listener.
| |
| getEnabledAttributes | back to summary |
|---|---|
| public synchronized Vector Gets all the enabled attribute names for this filter. | |
| isNotificationEnabled | back to summary |
|---|---|
| public synchronized boolean isNotificationEnabled(Notification notification) Implements javax. Invoked before sending the specified notification to the listener.
| |