Package com.mongodb.internal.validator
Class NoOpFieldNameValidator
java.lang.Object
com.mongodb.internal.validator.NoOpFieldNameValidator
- All Implemented Interfaces:
FieldNameValidator
@Deprecated(since="2021-05-27")
public class NoOpFieldNameValidator
extends Object
implements FieldNameValidator
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A field name validator that treats all fields as valid.
This class should not be considered a part of the public API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValidatorForField(String fieldName) Deprecated.Gets a new validator to use for the value of the field with the given name.booleanDeprecated.Returns true if the field name is valid, false otherwise.
-
Constructor Details
-
NoOpFieldNameValidator
public NoOpFieldNameValidator()Deprecated.
-
-
Method Details
-
validate
Deprecated.Description copied from interface:FieldNameValidatorReturns true if the field name is valid, false otherwise.- Specified by:
validatein interfaceFieldNameValidator- Parameters:
fieldName- the field name- Returns:
- true if the field name is valid, false otherwise
-
getValidatorForField
Deprecated.Description copied from interface:FieldNameValidatorGets a new validator to use for the value of the field with the given name.- Specified by:
getValidatorForFieldin interfaceFieldNameValidator- Parameters:
fieldName- the field name- Returns:
- a non-null validator
-