Class CmsValidationQuery

java.lang.Object
org.opencms.gwt.shared.CmsValidationQuery
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsValidationQuery extends Object implements com.google.gwt.user.client.rpc.IsSerializable
A simple bean class which represents a validation request for a single form field.

Since:
8.0.0
  • Constructor Details

    • CmsValidationQuery

      public CmsValidationQuery(String validator, String value, String config)
      Constructor.

      Parameters:
      validator - the server-side validator class name
      value - the value to validate
      config - the configuration string for the server-side validator
    • CmsValidationQuery

      protected CmsValidationQuery()
      Hidden default constructor.

  • Method Details

    • getConfig

      public String getConfig()
      Gets the configuration string for the server-side validator.

      Returns:
      a configuration string
    • getValidatorId

      Gets the class name of the server-side validator.

      Returns:
      the class name of the server-side validator
    • getValue

      public String getValue()
      Returns the value to validate.

      Returns:
      the value which should be validated