|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.parameter.ParameterFilter
public class ParameterFilter
A filter that operates on parameters.
Revision Info:
$Revision: 230 $ |
$Date: 2007-01-02 14:37:07 -0700 (Tue, 02 Jan 2007) $ |
$Author: dharland $ |
Field Summary | |
---|---|
static Pattern |
BLANK_PATTERN
|
Constructor Summary | |
---|---|
ParameterFilter()
Creates a new wide-open filter that allows all parameters to pass. |
Method Summary | |
---|---|
boolean |
allows(Parameter param)
Returns true if this filter allows the given parameter to pass through it. |
boolean |
blocks(Parameter param)
Returns true if this filter blocks the given parameter. |
void |
clearAll()
Sets this filter to a wide-open state. |
void |
clearBandPattern()
Sets the band criterion to its wide-open state. |
void |
clearEntityPattern()
Sets the entity criterion to its wide-open state. |
void |
clearModifiedByPattern()
Sets the band criterion to its wide-open state. |
void |
clearParameterPattern()
Sets the parameter criterion to its wide-open state. |
void |
clearValuePattern()
Sets the value criterion to its wide-open state. |
void |
setBandPattern(Pattern regex)
Sets a regular expression for matching the bands of parameters. |
void |
setEntityPattern(Pattern regex)
Sets a regular expression for matching the entities of parameters. |
void |
setModifiedByPattern(Pattern regex)
Sets a regular expression for matching the modifiedBy's of parameters. |
void |
setParameterPattern(Pattern regex)
Sets a regular expression for matching the parameterss of parameters. |
void |
setValuePattern(Pattern regex)
Sets a regular expression for matching the values of parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Pattern BLANK_PATTERN
Constructor Detail |
---|
public ParameterFilter()
Method Detail |
---|
public boolean allows(Parameter param)
The logic for allowing or blocking a parameter is somewhat complex. See
blocks(Parameter)
for details.
allows
in interface Filter<Parameter>
param
- the parameter to be filtered.
param
to pass through
it.public boolean blocks(Parameter param)
blocks
in interface Filter<Parameter>
param
- the parameter to be filtered.
param
.public void clearAll()
public void clearBandPattern()
setBandPattern(Pattern)
public void clearEntityPattern()
setEntityPattern(Pattern)
public void clearModifiedByPattern()
setModifiedByPattern(Pattern)
public void clearParameterPattern()
setParameterPattern(Pattern)
public void clearValuePattern()
setValuePattern(Pattern)
public void setBandPattern(Pattern regex)
regex
are allowed to pass
through this filter. If parameters should not be filtered based on their
bands, call clearBandPattern()
.
regex
- a regular expression for matching the bands of parameters.public void setEntityPattern(Pattern regex)
regex
are allowed to
pass through this filter. If parameters should not be filtered based on
their entity, call clearEntityPattern()
.
regex
- a regular expression for matching the entityss of
parameters.public void setModifiedByPattern(Pattern regex)
regex
are
allowed to pass through this filter. If parameters should not be filtered
based on their modifiedBy's, call clearModifiedByPattern()
.
regex
- a regular expression for matching the modifiedBy's of
parameters.public void setParameterPattern(Pattern regex)
regex
are allowed
to pass through this filter. If parameters should not be filtered based
on their parameters, call clearParameterPattern()
.
regex
- a regular expression for matching the parameterss of
parameters.public void setValuePattern(Pattern regex)
regex
are allowed to pass
through this filter. If parameters should not be filtered based on their
values, call clearValuePattern()
.
regex
- a regular expression for matching the values of
parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |