|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gridsystems.beanfilter.Filter
public class Filter
Agent filter.
Constructor Summary | |
---|---|
Filter(java.lang.String expr,
java.lang.Class<?> c)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
eval(java.lang.Object src)
Evaluates the filter. |
java.lang.String |
getExpr()
Gets the filter expression. |
java.lang.String |
getFormattedExpr()
For DEBUG purposes. |
void |
setExpr(java.lang.String expr)
Modifies this filter expression. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Filter(java.lang.String expr, java.lang.Class<?> c) throws EvalException
expr
- The filter expressionc
- The class to filter
EvalException
- If a syntax error is found in exprMethod Detail |
---|
public boolean eval(java.lang.Object src) throws EvalException
src
- The data source to filter
true
if the filter allows access to the agent
EvalException
- If a syntax error is detectedpublic java.lang.String getExpr()
public void setExpr(java.lang.String expr) throws EvalException
expr
- The new expression
EvalException
- If a syntax error is detectedpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFormattedExpr()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |