de.schwarzrot.bean.support
Class IsFalsePropertyCondition<B>
java.lang.Object
de.schwarzrot.bean.support.AbstractPropertyCondition<B>
de.schwarzrot.bean.support.IsFalsePropertyCondition<B>
- Type Parameters:
B
- - the bean to evaluate
- All Implemented Interfaces:
- PropertyCondition<B>
public class IsFalsePropertyCondition<B>
- extends AbstractPropertyCondition<B>
checks whether the value of the given property can be evaluated to false.
This implementation allows a relaxed definition of what is considered false.
If the type of the beans property is of type Boolean
, the result is
obvious. If the property type is a String
, a "-" or "n" will be
accepted as logical false
, whereas a number type should have the
value 0. Any type being null
will be evaluated as false
too.
- Author:
- Reinhard Mantey
- See Also:
IsTruePropertyCondition
Method Summary |
boolean |
matches()
returns whether the current condition matches. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsFalsePropertyCondition
public IsFalsePropertyCondition(B bean,
String propertyName)
matches
public boolean matches()
- Description copied from interface:
PropertyCondition
- returns whether the current condition matches.
- Specified by:
matches
in interface PropertyCondition<B>
- Specified by:
matches
in class AbstractPropertyCondition<B>
- Returns:
- - true, if the implemented condition is met, otherwise false
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.