public class PageURLCriteria extends Criteria
PageURLCriteria criteria = new PageURLCriteria("/some/url")
will match all pages
which have the relative url equal to "/some/url". PageURLCriteria criteria = new PageURLCriteria("/some/url", Criteria.GREATER_THAN)
will match all pages which have the relative url>"/some/url". PageURLCriteria criteria = new PageURLCriteria("/some/url%", Criteria.LIKE)
will match all pages which have the relative url like "/some/url%".EQUAL, GREATER_OR_EQUAL_THAN, GREATER_THAN, LESS_OR_EQUAL_THAN, LESS_THAN, LIKE, NOT_EQUAL
Constructor and Description |
---|
PageURLCriteria(String url)
This constructs the PageURLCriteria with a specific url.
|
PageURLCriteria(String url,
FieldOperator operator)
This constructs the PageURLCriteria with a specific url.
|
Modifier and Type | Method and Description |
---|---|
String |
getURL()
This returns the page url that this criteria uses to query for.
|
protected boolean |
isLikeOperatorApplicable()
Like operator is applicable to this criteria.
|
String |
toString()
Returns string presentation of the criteria.
|
addCriteria, getCriteriaChildren, getCriteriaName, getFieldOperatorAsString, getParentOperator, getSignature, hasAnyCriteria, isOperator, setParentOperator
public PageURLCriteria(String url)
url
- The page url to query for.public PageURLCriteria(String url, FieldOperator operator)
url
- The page url to query for.operator
- Operator for the queried url (Criteria.EQUAL, Criteria.GREATER_THAN, ...).public String getURL()
public String toString()
protected boolean isLikeOperatorApplicable()
isLikeOperatorApplicable
in class Criteria
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries