public abstract class ObservableTestFilter extends TestFilter
Modifier and Type | Class and Description |
---|---|
static interface |
ObservableTestFilter.Observer
An observer that is notified when the filter has been changed.
|
TestFilter.Fault
Modifier and Type | Field and Description |
---|---|
protected ObservableTestFilter.Observer[] |
observers
The set of observers for this filter.
|
Constructor and Description |
---|
ObservableTestFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(ObservableTestFilter.Observer o)
Add an observer to be notified when this filter has been changed.
|
protected void |
notifyUpdated(ObservableTestFilter filter)
Notify observers that this filter has changed it's internal state
(behavior).
|
void |
removeObserver(ObservableTestFilter.Observer o)
Remove a previously registered observer so that it will no longer
be notified of changes to this filter.
|
accepts, accepts, accepts, accepts, getDescription, getName, getReason
protected ObservableTestFilter.Observer[] observers
public void addObserver(ObservableTestFilter.Observer o)
o
- The observer to be registered. Should never be null.public void removeObserver(ObservableTestFilter.Observer o)
o
- The filter to be un-registered.protected void notifyUpdated(ObservableTestFilter filter)
filter
- the filter that has changedCopyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.