public class IGCSearchConditionSet extends Object
IGCSearchCondition objects into a coherent set of conditions,
including how those conditions should be combined (ie. whether AND'd or OR'd).| Constructor and Description |
|---|
IGCSearchConditionSet() |
IGCSearchConditionSet(IGCSearchCondition condition)
Creates a new set of search criteria initialised with the provided condition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(IGCSearchCondition condition)
Adds the provided condition to the set of criteria to use in the search.
|
void |
addNestedConditionSet(IGCSearchConditionSet igcConditions)
Adds a set of conditions as nested conditions of this set.
|
com.fasterxml.jackson.databind.node.ObjectNode |
getConditionSetObject()
Returns the JSON structure for the set of conditions.
|
void |
setMatchAnyCondition(boolean on)
Set whether to retrieve results for any condition match (true) or all conditions matching (false).
|
void |
setNegateAll(boolean on)
Set whether to negate all of the specified conditions (true) or not (false).
|
int |
size()
Returns the number of conditions in the set (0 if none).
|
public IGCSearchConditionSet()
public IGCSearchConditionSet(IGCSearchCondition condition)
condition - the condition to initialise the search criteriapublic void addCondition(IGCSearchCondition condition)
condition - the condition to add to the set of criteriapublic void setMatchAnyCondition(boolean on)
on - set to true to retrieve results that match any condition; false to retrieve results that match allpublic void setNegateAll(boolean on)
on - set to true to negate all conditions in this set; false to use conditions as-specifiedpublic void addNestedConditionSet(IGCSearchConditionSet igcConditions)
igcConditions - the set of criteria to add as nested criteriapublic int size()
public com.fasterxml.jackson.databind.node.ObjectNode getConditionSetObject()
Copyright © 2018–2021 ODPi. All rights reserved.