public class OwBoolComparator extends OwAbstractComparator<Boolean>
Simple boolean comparator.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwBoolComparator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matchBetween(OwSearchCriteria filter,
Boolean value)
Between value compare, where both limits must be include
for comparison. Neither the minimum limit nor the maximum
limit should be excluded.
|
protected boolean |
matchEquals(OwSearchCriteria filter,
Boolean value)
Value and filter value must be equal! But equal operation is
depending on the type and restriction of the given value.
|
protected boolean |
matchGreater(OwSearchCriteria filter,
Boolean value)
Value restriction where it must be greater as the filter.
|
protected boolean |
matchGreaterEquals(OwSearchCriteria filter,
Boolean value)
Greater or equals compare of given value and filter.
|
protected boolean |
matchLess(OwSearchCriteria filter,
Boolean value)
Value must be less than the defined filter.
|
protected boolean |
matchLessEquals(OwSearchCriteria filter,
Boolean value)
Less or equals compare of the value and filter.
|
protected boolean |
matchLike(OwSearchCriteria filter,
Boolean value)
A like compare of the value, the filter criteria
can be used to get the representation of wildcard characters.
|
match
protected boolean matchBetween(OwSearchCriteria filter, Boolean value)
OwAbstractComparator
matchBetween
in class OwAbstractComparator<Boolean>
filter
- OwSearchCriteria providing the limit(s)value
- T to match with criteriaprotected boolean matchLessEquals(OwSearchCriteria filter, Boolean value)
OwAbstractComparator
matchLessEquals
in class OwAbstractComparator<Boolean>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchGreaterEquals(OwSearchCriteria filter, Boolean value)
OwAbstractComparator
matchGreaterEquals
in class OwAbstractComparator<Boolean>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchLess(OwSearchCriteria filter, Boolean value)
OwAbstractComparator
matchLess
in class OwAbstractComparator<Boolean>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchGreater(OwSearchCriteria filter, Boolean value)
OwAbstractComparator
matchGreater
in class OwAbstractComparator<Boolean>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchLike(OwSearchCriteria filter, Boolean value)
OwAbstractComparator
matchLike
in class OwAbstractComparator<Boolean>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchEquals(OwSearchCriteria filter, Boolean value)
OwAbstractComparator
For special cases (Date, Number,...) an equal compare will still return true even if the filter and given value not match fully each other .
matchEquals
in class OwAbstractComparator<Boolean>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.