Interface IXBaseValidationParams

    • Method Detail

      • getClientId

        long getClientId()
        Returns:
        The ID of the current client to which the form belongs.
      • getFieldValuesMap

        Map<String,​List<String[]>> getFieldValuesMap()
        Returns:
        A map with all values that were submitted. The key is the name of a form field.
      • getFormRenderConfig

        IXFormRenderConfig getFormRenderConfig()
        Returns:
        The current form render config for accessing the global configuration of the validation process.
      • getFRQSessionAttributes

        Map<Serializable,​Serializable> getFRQSessionAttributes()
        Returns:
        All attributes from the current form request session.
      • getI18nValue

        String getI18nValue​(String i18nKey)
        Parameters:
        i18nKey - I18n key for the localized message.
        Returns:
        The localized message for the given key, retrieved from the built-in resource bundle. Plugin resource bundles are not considered.
      • getLocale

        default Locale getLocale()
        Returns:
        The current locale to be used for creating error messages.
      • isValuesEmpty

        boolean isValuesEmpty​(List<String[]> values)
        Parameters:
        values - List of values of a form field.
        Returns:
        true if the values are all empty, or false otherwise.