Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.filter
Class PassFilter

java.lang.Object
  extended by com.sciapp.filter.Filter
      extended by com.sciapp.filter.PassFilter
All Implemented Interfaces:
Serializable

public class PassFilter
extends Filter

This filter will allow all supplied values.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sciapp.filter.Filter
acceptNull
 
Constructor Summary
PassFilter()
          Constructs a PassFilter.
 
Method Summary
 boolean accept(Object o)
          Decides whether to accept the value supplied.
 Object getFilterPattern()
          Returns the object used as the filter pattern.
 void setFilterPattern(Object filter)
          Sets an object as the filter pattern.
 
Methods inherited from class com.sciapp.filter.Filter
getAcceptNull, setAcceptNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassFilter

public PassFilter()
Constructs a PassFilter.

Method Detail

accept

public boolean accept(Object o)
Decides whether to accept the value supplied.

Specified by:
accept in class Filter
Parameters:
o - the object we want to decide if it will be filtered or not.
Returns:
true if the object matched and should not be filtered out, false otherwise.

getFilterPattern

public Object getFilterPattern()
Returns the object used as the filter pattern.

Specified by:
getFilterPattern in class Filter
Returns:
the object that is currently set as the filter pattern.

setFilterPattern

public void setFilterPattern(Object filter)
Sets an object as the filter pattern. Subclasses should provide an implementation that will probably first cast filter to the appropriate object.

Specified by:
setFilterPattern in class Filter
Parameters:
filter - the object to set as the filter pattern

Copyright © 2005 Scientific Applications. All Rights Reserved.