Class UpdateFieldNameValidator

  • All Implemented Interfaces:
    FieldNameValidator

    @Deprecated(since="2021-05-27")
    public class UpdateFieldNameValidator
    extends java.lang.Object
    implements FieldNameValidator
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A field name validator for update documents. It ensures that all top-level fields start with a '$'.

    This class should not be considered a part of the public API.

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      FieldNameValidator getValidatorForField​(java.lang.String fieldName)
      Deprecated.
      Gets a new validator to use for the value of the field with the given name.
      boolean validate​(java.lang.String fieldName)
      Deprecated.
      Returns true if the field name is valid, false otherwise.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpdateFieldNameValidator

        public UpdateFieldNameValidator()
        Deprecated.
    • Method Detail

      • validate

        public boolean validate​(java.lang.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​(java.lang.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