|
|||||||||
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.ComponentScreen
public class ComponentScreen
ComponentScreen extends Screen
to describe
possession of controls, models, and emitters. That is, the screen
passes the object if it has or lacks the named component.
Field Summary | |
---|---|
static java.lang.String |
COMP_CTRL
|
static java.lang.String |
COMP_EMTR
|
static java.lang.String |
COMP_MODEL
|
static int |
OP_HAS
|
static int |
OP_LACKS
|
Fields inherited from class com.monad.homerun.filter.Screen |
---|
COMPONENT, FILTER, INST_PROP, LIST, RELATION, TYPE, TYPE_PROP |
Constructor Summary | |
---|---|
ComponentScreen()
|
|
ComponentScreen(boolean alternate,
java.lang.String compName,
java.lang.String compType,
int operator)
|
|
ComponentScreen(ComponentScreen screen)
|
Method Summary | |
---|---|
java.lang.String |
getComponentName()
Returns the component name |
java.lang.String |
getComponentType()
Returns the conponent type (model, emitter, control) |
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 java.lang.String COMP_CTRL
public static final java.lang.String COMP_EMTR
public static final java.lang.String COMP_MODEL
public static final int OP_HAS
public static final int OP_LACKS
Constructor Detail |
---|
public ComponentScreen()
public ComponentScreen(boolean alternate, java.lang.String compName, java.lang.String compType, int operator)
public ComponentScreen(ComponentScreen screen)
Method Detail |
---|
public java.lang.String getComponentName()
public java.lang.String getComponentType()
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 |