net.sourceforge.domian.specification
Interface ValueBoundSpecification<T>

All Superinterfaces:
LeafSpecification<T>, Specification<T>
All Known Implementing Classes:
AbstractValueBoundSpecification, DateStringSpecification, EqualIgnoreCaseStringSpecification, EqualSpecification, GreaterThanOrEqualSpecification, GreaterThanSpecification, LessThanOrEqualSpecification, LessThanSpecification, RegularExpressionMatcherStringSpecification, WildcardExpressionMatcherIgnoreCaseStringSpecification, WildcardExpressionMatcherStringSpecification

public interface ValueBoundSpecification<T>
extends LeafSpecification<T>

Part of the Evans/Fowler Specifications pattern.

Since:
0.1
Author:
Eirik Torske
See Also:
The Specifications Pattern

Method Summary
 java.lang.String getOperator()
          Builds a string representation of the mathematical operator this value bound specification represents.
 java.lang.String getOperator(java.lang.Boolean negated)
          Builds a string representation of the negated mathematical operator this value bound specification represents.
 T getValue()
           
 
Methods inherited from interface net.sourceforge.domian.specification.Specification
getType, isGeneralizationOf, isSatisfiedBy, isSpecialCaseOf
 

Method Detail

getValue

T getValue()
Returns:
the value that is bound to this specification

getOperator

java.lang.String getOperator()
Builds a string representation of the mathematical operator this value bound specification represents. This representation is ready for use in Java, SQL, HQL, and JPQL code.

Returns:
a string representation of the mathematical operator this value bound specification represents
Since:
0.4.2

getOperator

java.lang.String getOperator(java.lang.Boolean negated)
Builds a string representation of the negated mathematical operator this value bound specification represents. This representation is ready for use in Java, SQL, HQL, and JPQL code.

Parameters:
negated - when true the returned operator will be negated
Returns:
a string representation of the mathematical operator this value bound specification represents
Since:
0.4.2


Copyright © 2006-2009. All Rights Reserved.