|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.filter.Filter
com.sciapp.filter.ComparisonFilter
com.sciapp.filter.NumberFilter
com.sciapp.filter.IntegerFilter
public class IntegerFilter
A filter for Integer values.
| Field Summary | |
|---|---|
protected int |
value
the integer value the supplied objects are matched against. |
| Fields inherited from class com.sciapp.filter.ComparisonFilter |
|---|
comparison, EQ, GE, GT, LE, LT, NE |
| Fields inherited from class com.sciapp.filter.Filter |
|---|
acceptNull |
| Constructor Summary | |
|---|---|
IntegerFilter()
Constructs an IntegerFilter. |
|
IntegerFilter(int i)
Constructs an IntegerFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(int i)
Matches the integer value i against the current filter. |
boolean |
accept(Object value)
Decides whether to accept the value supplied. |
boolean |
fromString(String str)
Parses the supplied string to a Number and returns a boolean indicating if the parsing was successful. |
Object |
getFilterPattern()
Returns the object used as the filter pattern. |
Number |
getNumber()
Returns the Number object which is set as the filter pattern. |
void |
setFilterPattern(Object filter)
Sets an object as the filter pattern. |
void |
setInt(int i)
Sets the integer value used to match against Number objects. |
void |
setNumber(Number n)
Assigns a new Number object as the filter pattern. |
| Methods inherited from class com.sciapp.filter.ComparisonFilter |
|---|
getComparison, setComparison |
| 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 |
| Field Detail |
|---|
protected int value
| Constructor Detail |
|---|
public IntegerFilter()
public IntegerFilter(int i)
| Method Detail |
|---|
public boolean accept(int i)
i against the current filter.
i - the integer to match
public boolean accept(Object value)
accept in class Filtervalue - the object we want to decide if it will be filtered or not.
public boolean fromString(String str)
fromString in class NumberFilterstr - the string to parse to a Number
public Object getFilterPattern()
getFilterPattern in class Filterpublic Number getNumber()
getNumber in class NumberFilterpublic void setFilterPattern(Object filter)
filter to the appropriate object.
setFilterPattern in class Filterfilter - the object to set as the filter patternpublic void setInt(int i)
i - the integer value filter.public void setNumber(Number n)
setNumber in class NumberFiltern - the new filter pattern to assign as a Number.
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||