|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.schwarzrot.bean.support.AbstractPropertyCondition<B>
B
- type of the beanpublic abstract class AbstractPropertyCondition<B>
baseclass for conditions based on bean properties with late value fetching.
A condition is build by the class implementation, bean and property name. The value of the property may be undefined at the time of creating the condition instance. It will be fetched each time, the condition gets evaluated.
Constructor Summary | |
---|---|
protected |
AbstractPropertyCondition(B aBean,
String propertyName)
|
Method Summary | |
---|---|
B |
getBean()
returns the bean of this condition |
Object |
getValue()
accessor to beans property values. |
protected Object |
getValue(String propertyName)
accessor to beans property values. |
abstract boolean |
matches()
returns whether the current condition matches. |
void |
setBean(B bean)
sets the bean of this condition |
void |
setPropertyName(String propertyName)
sets the name of the property that will be evaluated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractPropertyCondition(B aBean, String propertyName)
Method Detail |
---|
public final B getBean()
public final Object getValue()
public abstract boolean matches()
PropertyCondition
matches
in interface PropertyCondition<B>
public final void setBean(B bean)
bean
- - the bean to evaluatepublic final void setPropertyName(String propertyName)
propertyName
- - the name of a propertyprotected Object getValue(String propertyName)
propertyName
- - the name of the property to access
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |