net.sourceforge.domian.specification
Class SpecificationFactory
java.lang.Object
net.sourceforge.domian.specification.SpecificationFactory
public class SpecificationFactory
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecificationFactory
public SpecificationFactory()
createSpecificationFor
public static <T> CompositeSpecification<T> createSpecificationFor(java.lang.Class<T> type)
the
public static <T> CompositeSpecification<T> the(java.lang.Class<T> type)
a
public static <T> CompositeSpecification<T> a(java.lang.Class<T> type)
an
public static <T> CompositeSpecification<T> an(java.lang.Class<T> type)
isA
public static <T> CompositeSpecification<T> isA(java.lang.Class<T> type)
isAn
public static <T> CompositeSpecification<T> isAn(java.lang.Class<T> type)
all
public static <T> CompositeSpecification<T> all(java.lang.Class<T> type)
instanceOf
public static <T> CompositeSpecification<T> instanceOf(java.lang.Class<T> type)
instancesOf
public static <T> CompositeSpecification<T> instancesOf(java.lang.Class<T> type)
instanceOfType
public static <T> CompositeSpecification<T> instanceOfType(java.lang.Class<T> type)
instancesOfType
public static <T> CompositeSpecification<T> instancesOfType(java.lang.Class<T> type)
anInstanceOfType
public static <T> CompositeSpecification<T> anInstanceOfType(java.lang.Class<T> type)
allOfType
public static <T> CompositeSpecification<T> allOfType(java.lang.Class<T> type)
allInstancesOfType
public static <T> CompositeSpecification<T> allInstancesOfType(java.lang.Class<T> type)
specify
public static <T> CompositeSpecification<T> specify(java.lang.Class<T> type)
specifyA
public static <T> CompositeSpecification<T> specifyA(java.lang.Class<T> type)
specifyAn
public static <T> CompositeSpecification<T> specifyAn(java.lang.Class<T> type)
createAlwaysFalseSpecification
public static Specification<?> createAlwaysFalseSpecification()
createContradiction
public static Specification<?> createContradiction()
createAlwaysTrueSpecification
public static Specification<?> createAlwaysTrueSpecification()
createTautology
public static Specification<?> createTautology()
createNotNullSpecification
public static <T> Specification<T> createNotNullSpecification(java.lang.Class<T> type)
allObjects
public static Specification allObjects()
allEntities
public static Specification<? extends Entity> allEntities()
entities
public static Specification<? extends Entity> entities()
entity
public static Specification<? extends Entity> entity()
isNull
public static Specification<?> isNull()
isNotNull
public static Specification<?> isNotNull()
createDefaultNumberSpecification
public static Specification<java.lang.Number> createDefaultNumberSpecification()
isDefaultNumber
public static Specification<java.lang.Number> isDefaultNumber()
defaultNumber
public static Specification<java.lang.Number> defaultNumber()
createBlankStringSpecification
public static Specification<java.lang.String> createBlankStringSpecification()
isBlankString
public static Specification<java.lang.String> isBlankString()
blankString
public static Specification<java.lang.String> blankString()
createEqualIgnoreCaseStringSpecification
public static Specification<java.lang.String> createEqualIgnoreCaseStringSpecification(java.lang.String string)
equalIgnoringCase
public static Specification<java.lang.String> equalIgnoringCase(java.lang.String string)
equalsIgnoringCase
public static Specification<java.lang.String> equalsIgnoringCase(java.lang.String string)
isEqualIgnoringCase
public static Specification<java.lang.String> isEqualIgnoringCase(java.lang.String string)
createDateStringSpecification
public static Specification<java.lang.String> createDateStringSpecification(java.lang.String dateString)
isDate
public static Specification<java.lang.String> isDate(java.lang.String dateString)
createEnumNameStringSpecification
public static <E extends java.lang.Enum> Specification<java.lang.String> createEnumNameStringSpecification(java.lang.Class<E> enumClass)
isEnum
public static <E extends java.lang.Enum> Specification<java.lang.String> isEnum(java.lang.Class<E> enumClass)
createEqualSpecification
public static <T> Specification<T> createEqualSpecification(T value)
anObjectEqualTo
public static <T> Specification<T> anObjectEqualTo(T value)
objectEqualTo
public static <T> Specification<T> objectEqualTo(T value)
isEqualTo
public static <T> Specification<T> isEqualTo(T value)
equalTo
public static <T> Specification<T> equalTo(T value)
exactly
public static <T> Specification<T> exactly(T value)
is
public static <T> Specification<T> is(T value)
isAtTheSameTimeAs
public static Specification<java.util.Date> isAtTheSameTimeAs(java.util.Date date)
atTheSameTimeAs
public static Specification<java.util.Date> atTheSameTimeAs(java.util.Date date)
at
public static Specification<java.util.Date> at(java.util.Date date)
isTrue
public static Specification<java.lang.Boolean> isTrue()
isFalse
public static Specification<java.lang.Boolean> isFalse()
matchesRegularExpression
public static Specification<java.lang.String> matchesRegularExpression(java.lang.String regularExpression)
matchesRegex
public static Specification<java.lang.String> matchesRegex(java.lang.String regularExpression)
matches
public static Specification<java.lang.String> matches(java.lang.String regularExpression)
matchesWildcardExpression
public static Specification<java.lang.String> matchesWildcardExpression(java.lang.String wildcardExpression)
like
public static Specification<java.lang.String> like(java.lang.String wildcardExpression)
matchesWildcardExpressionIgnoringCase
public static Specification<java.lang.String> matchesWildcardExpressionIgnoringCase(java.lang.String wildcardExpression)
isLessThan
public static <T extends java.lang.Comparable> Specification<T> isLessThan(T value)
lessThan
public static <T extends java.lang.Comparable> Specification<T> lessThan(T value)
isBefore
public static <T extends java.lang.Comparable> Specification<T> isBefore(T value)
before
public static <T extends java.lang.Comparable> Specification<T> before(T value)
isBefore
public static Specification<java.util.Date> isBefore(java.lang.String dateString)
before
public static Specification<java.util.Date> before(java.lang.String dateString)
isLessThanOrEqualTo
public static <T extends java.lang.Comparable> Specification<T> isLessThanOrEqualTo(T value)
lessThanOrEqualTo
public static <T extends java.lang.Comparable> Specification<T> lessThanOrEqualTo(T value)
atMost
public static <T extends java.lang.Comparable> Specification<T> atMost(T value)
isBeforeOrAtTheSameTimeAs
public static <T extends java.lang.Comparable> Specification<T> isBeforeOrAtTheSameTimeAs(T dateOrLongValue)
beforeOrAtTheSameTimeAs
public static <T extends java.lang.Comparable> Specification<T> beforeOrAtTheSameTimeAs(T dateOfLongValue)
isBeforeOrAtTheSameTimeAs
public static Specification<java.util.Date> isBeforeOrAtTheSameTimeAs(java.lang.String dateString)
beforeOrAtTheSameTimeAs
public static Specification<java.util.Date> beforeOrAtTheSameTimeAs(java.lang.String dateString)
isGreaterThan
public static <T extends java.lang.Comparable> Specification<T> isGreaterThan(T value)
greaterThan
public static <T extends java.lang.Comparable> Specification<T> greaterThan(T value)
moreThan
public static <T extends java.lang.Comparable> Specification<T> moreThan(T value)
isAfter
public static <T extends java.lang.Comparable> Specification<T> isAfter(T value)
after
public static <T extends java.lang.Comparable> Specification<T> after(T value)
isAfter
public static Specification<java.util.Date> isAfter(java.lang.String dateString)
after
public static Specification<java.util.Date> after(java.lang.String dateString)
isGreaterThanOrEqualTo
public static <T extends java.lang.Comparable> Specification<T> isGreaterThanOrEqualTo(T value)
greaterThanOrEqualTo
public static <T extends java.lang.Comparable> Specification<T> greaterThanOrEqualTo(T value)
atLeast
public static <T extends java.lang.Comparable> Specification<T> atLeast(T value)
isAfterOrAtTheSameTimeAs
public static <T extends java.lang.Comparable> Specification<T> isAfterOrAtTheSameTimeAs(T dateOrLongValue)
afterOrAtTheSameTimeAs
public static <T extends java.lang.Comparable> Specification<T> afterOrAtTheSameTimeAs(T dateOrLongValue)
isAfterOrAtTheSameTimeAs
public static Specification<java.util.Date> isAfterOrAtTheSameTimeAs(java.lang.String dateString)
afterOrAtTheSameTimeAs
public static Specification<java.util.Date> afterOrAtTheSameTimeAs(java.lang.String dateString)
allOf
public static <T> Specification<T> allOf(Specification<T>... specifications)
shouldBeAllOf
public static <T> Specification<T> shouldBeAllOf(Specification<T>... specifications)
shouldBeBoth
public static <T> Specification<T> shouldBeBoth(Specification<T>... specifications)
shouldBe
public static <T> Specification<T> shouldBe(Specification<T>... specifications)
isAllOf
public static <T> Specification<T> isAllOf(Specification<T>... specifications)
isBoth
public static <T> Specification<T> isBoth(Specification<T>... specifications)
both
public static <T> Specification<T> both(Specification<T>... specifications)
anyOf
public static <T> Specification<T> anyOf(Specification<T>... specifications)
shouldBeOneOf
public static <T> Specification<T> shouldBeOneOf(Specification<T>... specifications)
shouldBeEitherOf
public static <T> Specification<T> shouldBeEitherOf(Specification<T>... specifications)
isOneOf
public static <T> Specification<T> isOneOf(Specification<T>... specifications)
isEitherOf
public static <T> Specification<T> isEitherOf(Specification<T>... specifications)
isEitherThe
public static <T> Specification<T> isEitherThe(Specification<T>... specifications)
isEither
public static <T> Specification<T> isEither(Specification<T>... specifications)
oneOf
public static <T> Specification<T> oneOf(Specification<T>... specifications)
eitherOf
public static <T> Specification<T> eitherOf(Specification<T>... specifications)
either
public static <T> Specification<T> either(Specification<T>... specifications)
in
public static <T> Specification<T> in(Specification<T>... specifications)
anyOf
public static <F> Specification<F> anyOf(F... values)
shouldBeOneOf
public static <T,F> Specification<T> shouldBeOneOf(F... values)
shouldBeEitherOf
public static <T,F> Specification<T> shouldBeEitherOf(F... values)
isOneOf
public static <T,F> Specification<T> isOneOf(F... values)
isEitherOf
public static <T,F> Specification<T> isEitherOf(F... values)
isEitherThe
public static <T,F> Specification<T> isEitherThe(F... values)
isEither
public static <T,F> Specification<T> isEither(F... values)
oneOf
public static <T,F> Specification<T> oneOf(F... values)
eitherOf
public static <T,F> Specification<T> eitherOf(F... values)
either
public static <T,F> Specification<T> either(F... values)
in
public static <T,F> Specification<T> in(F... values)
neitherOf
public static <T> Specification<T> neitherOf(Specification<T>... specifications)
not
public static <T> Specification<T> not(Specification<T> specification)
not
public static <T> Specification<T> not(T object)
isSatisfiedBy
public static <T> Specification<T> isSatisfiedBy(Specification<T> specification)
a
public static <T> Specification<T> a(Specification<T> specification)
an
public static <T> Specification<T> an(Specification<T> specification)
is
public static <T> Specification<T> is(Specification<T> specification)
isA
public static <T> Specification<T> isA(Specification<T> specification)
isAn
public static <T> Specification<T> isAn(Specification<T> specification)
are
public static <T> Specification<T> are(Specification<T> specification)
isFrom
public static <T> Specification<T> isFrom(Specification<T> specification)
hasSize
public static Specification<?> hasSize(Specification<java.lang.Integer> collectionSpecification)
haveSize
public static Specification<?> haveSize(Specification<java.lang.Integer> collectionSpecification)
hasSizeOf
public static Specification<?> hasSizeOf(Specification<java.lang.Integer> collectionSpecification)
haveSizeOf
public static Specification<?> haveSizeOf(Specification<java.lang.Integer> collectionSpecification)
isEmpty
public static Specification<?> isEmpty()
empty
public static Specification<?> empty()
Copyright © 2006-2010. All Rights Reserved.