Class CollectibleDocumentFieldNameValidator

java.lang.Object
com.mongodb.internal.validator.CollectibleDocumentFieldNameValidator
All Implemented Interfaces:
FieldNameValidator

@Deprecated(since="2021-05-27") public class CollectibleDocumentFieldNameValidator extends Object implements FieldNameValidator
Deprecated.
Usage of this API is not supported in AEM as a 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 Details

    • CollectibleDocumentFieldNameValidator

      public CollectibleDocumentFieldNameValidator()
      Deprecated.
  • Method Details

    • validate

      public boolean validate(String fieldName)
      Deprecated.
      Description copied from interface: FieldNameValidator
      Returns true if the field name is valid, false otherwise.
      Specified by:
      validate in interface FieldNameValidator
      Parameters:
      fieldName - the field name
      Returns:
      true if the field name is valid, false otherwise
    • getValidatorForField

      public FieldNameValidator getValidatorForField(String fieldName)
      Deprecated.
      Description copied from interface: FieldNameValidator
      Gets a new validator to use for the value of the field with the given name.
      Specified by:
      getValidatorForField in interface FieldNameValidator
      Parameters:
      fieldName - the field name
      Returns:
      a non-null validator