Package com.mongodb.internal.validator
Class CollectibleDocumentFieldNameValidator
- java.lang.Object
-
- com.mongodb.internal.validator.CollectibleDocumentFieldNameValidator
-
- All Implemented Interfaces:
FieldNameValidator
@Deprecated public class CollectibleDocumentFieldNameValidator extends java.lang.Object implements FieldNameValidator
Deprecated.Usage of this API is not supported in Cloud Service.A field name validator for document that are meant for storage in MongoDB collections. It ensures that no fields contain a '.', or start with '$' (with the exception of "$db", "$ref", and "$id", so that DBRefs are not rejected).This class should not be considered a part of the public API.
-
-
Constructor Summary
Constructors Constructor Description CollectibleDocumentFieldNameValidator()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FieldNameValidatorgetValidatorForField(java.lang.String fieldName)Deprecated.Gets a new validator to use for the value of the field with the given name.booleanvalidate(java.lang.String fieldName)Deprecated.Returns true if the field name is valid, false otherwise.
-
-
-
Method Detail
-
validate
public boolean validate(java.lang.String fieldName)
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
public FieldNameValidator getValidatorForField(java.lang.String fieldName)
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
-
-