public class OwStringComparator extends OwAbstractComparator<String>
Simple string comparator. Implements the LIKE operation through regular expression transformation.
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 |
---|
OwStringComparator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matchBetween(OwSearchCriteria filter,
String 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,
String 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,
String value)
Value restriction where it must be greater as the filter.
|
protected boolean |
matchGreaterEquals(OwSearchCriteria filter,
String value)
Greater or equals compare of given value and filter.
|
protected boolean |
matchLess(OwSearchCriteria filter,
String value)
Value must be less than the defined filter.
|
protected boolean |
matchLessEquals(OwSearchCriteria filter,
String value)
Less or equals compare of the value and filter.
|
protected boolean |
matchLike(OwSearchCriteria filter,
String 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, String value)
OwAbstractComparator
matchBetween
in class OwAbstractComparator<String>
filter
- OwSearchCriteria providing the limit(s)value
- T to match with criteriaprotected boolean matchLessEquals(OwSearchCriteria filter, String value)
OwAbstractComparator
matchLessEquals
in class OwAbstractComparator<String>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchGreaterEquals(OwSearchCriteria filter, String value)
OwAbstractComparator
matchGreaterEquals
in class OwAbstractComparator<String>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchLess(OwSearchCriteria filter, String value)
OwAbstractComparator
matchLess
in class OwAbstractComparator<String>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchGreater(OwSearchCriteria filter, String value)
OwAbstractComparator
matchGreater
in class OwAbstractComparator<String>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchLike(OwSearchCriteria filter, String value)
OwAbstractComparator
matchLike
in class OwAbstractComparator<String>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterprotected boolean matchEquals(OwSearchCriteria filter, String 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<String>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filterCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.