|
|||||||||
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.PropertyScreen
public class PropertyScreen
PropertyScreen extends Screen
to describe type and instance properties.
That is, the screen passes the object if:
(1) it has a property matching the subject name and
(2) it's property value matches the screen value.
Field Summary |
---|
Fields inherited from class com.monad.homerun.filter.Screen |
---|
COMPONENT, FILTER, INST_PROP, LIST, RELATION, TYPE, TYPE_PROP |
Constructor Summary | |
---|---|
PropertyScreen()
|
|
PropertyScreen(boolean alternate,
java.lang.String propType,
java.lang.String propName,
java.lang.String propValue,
java.lang.String specType,
int operator)
|
|
PropertyScreen(PropertyScreen screen)
|
Method Summary | |
---|---|
java.lang.String |
getPropertyName()
Returns the name of the property |
java.lang.String |
getPropertyValue()
Returns the value of the property |
int |
getRelation()
|
java.lang.String |
getSpecType()
|
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 |
Constructor Detail |
---|
public PropertyScreen()
public PropertyScreen(boolean alternate, java.lang.String propType, java.lang.String propName, java.lang.String propValue, java.lang.String specType, int operator)
public PropertyScreen(PropertyScreen screen)
Method Detail |
---|
public java.lang.String toString()
Screen
toString
in class Screen
public java.lang.String getPropertyName()
public java.lang.String getPropertyValue()
public java.lang.String getSpecType()
public int getRelation()
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 |