Expression Language
Also available as:
PDF

allAttributes

Description: Checks to see if all of the given attributes match the given condition. This function has no subject and takes one or more arguments that are the names of attributes to which the remainder of the Expression is to be applied. If all of the attributes specified, when evaluated against the rest of the Expression, returns a value of true, then this function will return true. Otherwise, this function will return false.

Subject Type: No Subject

Arguments:

  • Attribute Names : One or more attribute names to evaluate

Return Type: Boolean

Examples: Given that the "abc" attribute contains the value "hello world", "xyz" contains "good bye world", and "filename" contains "file.txt" consider the following examples:

Table 1.21. Table 21. allAttributes Example

Expression

Value

${allAttributes("abc", "xyz"):contains("world")}

true

${allAttributes("abc", "filename","xyz"):toUpper():contains("e")}

false