Class EqualsSelector
java.lang.Object
org.evomaster.client.java.controller.mongo.selectors.QuerySelector
org.evomaster.client.java.controller.mongo.selectors.EqualsSelector
{ field: { $eq: value } }
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractOperator(Object query) Extracts the operator (for example $eq) from the query.getOperation(Object bsonDocument) Returns the operation mapped to the selector if the query satisfy all syntax checks or null if not.protected Stringoperator()The operator a query must have to be considered as an instance of the corresponding operation.protected QueryOperationparseValue(String fieldName, Object value) Parses the provided field name and value into a QueryOperation representing an equality condition.Methods inherited from class org.evomaster.client.java.controller.mongo.selectors.QuerySelector
hasTheExpectedOperator, isUniqueEntry
-
Field Details
-
EQUALS_OPERATOR
- See Also:
-
-
Constructor Details
-
EqualsSelector
public EqualsSelector()
-
-
Method Details
-
parseValue
Parses the provided field name and value into a QueryOperation representing an equality condition.- Parameters:
fieldName- the name of the field involved in the condition; must not be nullvalue- the value to match against the field; null is a valid value- Returns:
- an instance of EqualsOperation representing the equality condition for the given field and value
-
operator
Description copied from class:QuerySelectorThe operator a query must have to be considered as an instance of the corresponding operation.- Specified by:
operatorin classQuerySelector
-
getOperation
Description copied from class:QuerySelectorReturns the operation mapped to the selector if the query satisfy all syntax checks or null if not.- Specified by:
getOperationin classQuerySelector
-
extractOperator
Description copied from class:QuerySelectorExtracts the operator (for example $eq) from the query.- Specified by:
extractOperatorin classQuerySelector
-