org.springmodules.validation.util.condition
Interface Condition

All Known Implementing Classes:
AbstractBeanCondition, AbstractBetweenCondition, AbstractCollectionCondition, AbstractCollectionElementCondition, AbstractCompoundCondition, AbstractCondition, AbstractDateCondition, AbstractInstantCondition, AbstractRangeCondition, AbstractSingleBoundCondition, AbstractStringCondition, AllCollectionCondition, AlwaysFalseCondition, AlwaysTrueCondition, AndCondition, AtLeastCollectionCondition, BetweenCondition, BetweenIncludingCondition, BetweenIncludingLowerBoundCondition, BetweenIncludingUpperBoundCondition, CommonsPredicateCondition, ConditionProxyCondition, ContainsSubstringStringCondition, EmailStringCondition, EqualPropertiesBeanCondition, EqualsIgnoreCaseStringCondition, GreaterThanCondition, GreaterThanOrEqualsCondition, InstanceOfCondition, IsAfterDateCondition, IsAfterInstantCondition, IsBeforeDateCondition, IsBeforeInstantCondition, IsEmptyCollectionCondition, IsEmptyStringCondition, IsInTheFutureDateCondition, IsInTheFutureInstantCondition, IsInThePastDateCondition, IsInThePastInstantCondition, IsNullCondition, IsTrueCondition, LengthRangeStringCondition, LessThanCondition, LessThanOrEqualsCondition, MaxLengthStringCondition, MaxSizeCollectionCondition, MinLengthStringCondition, MinSizeCollectionCondition, NoneCollectionCondition, NonNullAcceptingCondition, NonNullAcceptingTypeSpecificCondition, NotCondition, OgnlCondition, OrCondition, PropertyBeanCondition, PropertyValidationRule.DefaultApplicabilityCondition, RegExpStringCondition, SizeRangeCollectionCondition, SomeCollectionCondition, TypeSpecificCondition, ValangCondition

public interface Condition

Represents a instantCondition that can be checked against an object.

Author:
Uri Boness

Method Summary
 Condition and(Condition condition)
          Creates and returns a new condition that represents the logical AND of this condition and the given one.
 boolean check(Object object)
          Returns whether the given object adheres to this condition.
 Condition or(Condition condition)
          Creates and returns a new condition that represents the logical OR of this condition and the given one.
 

Method Detail

check

boolean check(Object object)
Returns whether the given object adheres to this condition.

Parameters:
object - The checked object.
Returns:
true if the object adheres to this condition, false otherwise.

and

Condition and(Condition condition)
Creates and returns a new condition that represents the logical AND of this condition and the given one.

Parameters:
condition - The condition to intersect with this condition.
Returns:
A new condition that represents the logical AND of this condition and the given one.

or

Condition or(Condition condition)
Creates and returns a new condition that represents the logical OR of this condition and the given one.

Parameters:
condition - The condition to unite with this condition.
Returns:
A new condition that represents the logical OR of this condition and the given one.


Copyright © 2009. All Rights Reserved.