@StableMinor(version="12.3", sinceVersion="8.1") public class SearchFieldClause extends Object implements ISearchQueryFilter
searcher
to search content. Defines an operator and values
to be applied on a optionally specified field.Modifier and Type | Class and Description |
---|---|
static class |
SearchFieldClause.Operator
Supported operators.
|
Constructor and Description |
---|
SearchFieldClause(DocumentTypeField field)
Creates a new search field clause for the given field.
|
SearchFieldClause(String fieldId)
Creates a new instance using the given field identifier.
|
Modifier and Type | Method and Description |
---|---|
String |
getFieldId()
Returns the field identifier for this search clause.
|
SearchFieldClause.Operator |
getOperator()
Returns the operator for this clause.
|
Collection<Object> |
getValues()
Returns the values this clause searches for.
|
SearchFieldClause |
setOperator(SearchFieldClause.Operator operator)
Sets the operator for this clause.
|
SearchFieldClause |
setValues(Collection<?> values)
Sets the values this clause searches for.
|
SearchFieldClause |
setValues(Object... values)
Sets the values this clause searches for.
|
public SearchFieldClause(DocumentTypeField field)
field
- the field.public SearchFieldClause(String fieldId)
fieldId
- the field identifier.public SearchFieldClause.Operator getOperator()
#setOperator(String)
public SearchFieldClause setOperator(SearchFieldClause.Operator operator)
SearchFieldClause.Operator.ANY
.operator
- the operator value to set.SearchFieldClause
.SearchFieldClause.Operator
public Collection<Object> getValues()
setValues(java.util.Collection<?>)
public SearchFieldClause setValues(Collection<?> values)
Its not allowed to set a null list or list of values that has a empty value or a null value.
values
- a list containing the values.SearchFieldClause
.public SearchFieldClause setValues(Object... values)
Its not allowed to set a null or empty string value.
values
- the values.SearchFieldClause
.public String getFieldId()
#setScope(String)
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.