|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monad.homerun.filter.Screen
com.monad.homerun.filter.FilterScreen
public class FilterScreen
FilterScreen extends Screen
for use of
embedded filters, i.e. the screen passes the object if it's
contained filter does.
Field Summary | |
---|---|
static int |
OP_FAIL
|
static int |
OP_PASS
|
Fields inherited from class com.monad.homerun.filter.Screen |
---|
COMPONENT, FILTER, INST_PROP, LIST, RELATION, TYPE, TYPE_PROP |
Constructor Summary | |
---|---|
FilterScreen()
|
|
FilterScreen(boolean alternate,
java.lang.String filterName,
java.lang.String domain,
int operator)
|
|
FilterScreen(FilterScreen screen)
|
Method Summary | |
---|---|
java.lang.String |
getDomain()
Returns the domain of the filter |
java.lang.String |
getFilterName()
Returns the name of the filter screen |
int |
getOperator()
Returns the screen operator |
boolean |
isRuntime(Screener screener)
Returns true if testing screen relies on runtime state of system |
boolean |
pass(Screener screener,
java.lang.String domain,
java.lang.String objectName,
FilterTrace trace)
Tests the object against the screen (with optional tracing) |
java.lang.String |
toString()
Returns a string representation of the Screen |
boolean |
validate(Screener screener,
java.lang.String domain,
FilterTrace trace)
Validates the terms of the screen with optional tracing |
Methods inherited from class com.monad.homerun.filter.Screen |
---|
clone, getNote, getType, isAlternate, setNote |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OP_PASS
public static final int OP_FAIL
Constructor Detail |
---|
public FilterScreen()
public FilterScreen(boolean alternate, java.lang.String filterName, java.lang.String domain, int operator)
public FilterScreen(FilterScreen screen)
Method Detail |
---|
public java.lang.String getFilterName()
public java.lang.String getDomain()
public int getOperator()
public java.lang.String toString()
Screen
toString
in class Screen
public boolean isRuntime(Screener screener)
Screen
isRuntime
in class Screen
public boolean validate(Screener screener, java.lang.String domain, FilterTrace trace)
validate
in class Screen
screener
- the Screening agentdomain
- the domain of the object being screenedtrace
- the optional trace object
public boolean pass(Screener screener, java.lang.String domain, java.lang.String objectName, FilterTrace trace)
pass
in class Screen
screener
- the Screening agentdomain
- the domain of the object being screenedobjectName
- the object being screenedtrace
- the optional trace object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |