public class SearchCriterion extends Criterion
/$s=searchPhrase[;t=profile][;p=pass],
where [...] denotes an optional string.Criterion.Operator| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER_SEPARATOR
The string that separates parameters in the string representation of
search criteria.
|
static String |
PASS_PARAMETER
Prefix that announces the search pass ID in the string representation of
search criteria.
|
static String |
PROFILE_PARAMETER
Prefix that announces the search profile ID in the string representation
of search criteria.
|
static String |
SEARCH_PREFIX
Prefix that announces the search phrase in the string representation of
search criteria.
|
| Constructor and Description |
|---|
SearchCriterion(String phrase)
Creates
SearchCriterion with the given search phrase and with a
profile or pass ID. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getPassId()
Returns the search pass ID, if any.
|
String |
getProfile()
Returns the search profile ID, if any.
|
String |
getSearchPhrase()
Returns the search phrase.
|
int |
hashCode() |
SearchCriterion |
setPassId(String passIdParam)
Sets the search pass ID.
|
SearchCriterion |
setProfile(String profileIdParam)
Sets the search profile ID.
|
SearchCriterion |
setSearchPhrase(String phraseParam)
Sets the search phrase for this criterion.
|
void |
toLocation(StringBuilder builder)
Appends the string representation of this criterion to the given
StringBuilder. |
getAttributeName, toLocation, toStringpublic static final String SEARCH_PREFIX
public static final String PROFILE_PARAMETER
public static final String PASS_PARAMETER
public static final String PARAMETER_SEPARATOR
public SearchCriterion(String phrase)
SearchCriterion with the given search phrase and with a
profile or pass ID.phrase - The search phrase.public SearchCriterion setSearchPhrase(String phraseParam)
phraseParam - The (new) search phrase for this criterion.SearchCriterion instance; useful for chained
manipulations.IllegalArgumentException - If phrase is null.getSearchPhrase()public String getSearchPhrase()
SearchCriterion.setSearchPhrase(String)public SearchCriterion setProfile(String profileIdParam)
profileIdParam - The (new) search profile ID for this criterion; may be
null.SearchCriterion instance; useful for chained
manipulations.getProfile()public String getProfile()
SearchCriterion
, if any; null otherwise.setProfile(String)public SearchCriterion setPassId(String passIdParam)
passIdParam - The (new) search pass ID for this criterion; may be
null.SearchCriterion instance; useful for chained
manipulations.getPassId()public String getPassId()
SearchCriterion,
if any; null otherwise.setPassId(String)public void toLocation(StringBuilder builder)
StringBuilder.
The general contract of this method is that if the StringBuilder
contains a valid location ending in a forward slash string prior
to invocation of this method, then its contents must also form a valid
location string upon completion of this method.
Important: this method will not itself insert a leading slash!
toLocation in class Criterionbuilder - The StringBuilder to which the string representation of
this criterion is to be appended.Copyright © 2021 RWS Group for and on behalf of its affiliates and subsidiaries. All rights reserved.