A2uiLengthFunction


class A2uiLengthFunction : A2uiFunction


Validates string length limits.

Use this A2uiFunction to check minimum and maximum length bounds.

Summary

Public companion properties

A2uiLengthFunction

Public functions

open Any?
execute(args: Map<StringAny>, executionContext: A2uiExecutionContext)

Validates that the string length in args meets the required bounds.

Public properties

open A2uiFunctionDefinition

The definition of the function.

Public companion properties

INSTANCE

val INSTANCEA2uiLengthFunction

Public functions

execute

open fun execute(args: Map<StringAny>, executionContext: A2uiExecutionContext): Any?

Validates that the string length in args meets the required bounds.

Parameters
args: Map<StringAny>

arguments containing "value" string and optional "min" or "max" limits

executionContext: A2uiExecutionContext

context allowing to execute other functions, evaluate dynamic payloads and resolving data bindings

Returns
Any?

true if the string length is within bounds, false otherwise

Public properties

definition

open val definitionA2uiFunctionDefinition

The definition of the function.