SRJRCFrames
v0.1.296

de.schwarzrot.bean.support
Class OrPropertyCondition<B>

java.lang.Object
  extended by de.schwarzrot.bean.support.AbstractPropertyCondition<B>
      extended by de.schwarzrot.bean.support.OrPropertyCondition<B>
Type Parameters:
B - - the bean to check
All Implemented Interfaces:
PropertyCondition<B>

public class OrPropertyCondition<B>
extends AbstractPropertyCondition<B>

a condition implementation that determines its result by other PropertyConditions. This condition relaxes all given condition elements in the sense, that only one must match so that this condition will match too.

Author:
Reinhard Mantey

Constructor Summary
OrPropertyCondition(List<PropertyCondition<B>> conditions)
           
OrPropertyCondition(PropertyCondition<B>[] conditions)
           
 
Method Summary
 boolean matches()
          returns whether the current condition matches.
 
Methods inherited from class de.schwarzrot.bean.support.AbstractPropertyCondition
getBean, getValue, getValue, setBean, setPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrPropertyCondition

public OrPropertyCondition(List<PropertyCondition<B>> conditions)

OrPropertyCondition

public OrPropertyCondition(PropertyCondition<B>[] conditions)
Method Detail

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

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.