Expression Language
Also available as:
PDF

allMatchingAttributes

Description: Checks to see if any of the given attributes, match the given condition. This function has no subject and takes one or more arguments that are Regular Expressions to match against attribute names. Any attribute whose name matches one of the supplied Regular Expressions will be evaluated against the rest of the Expression. If all of the attributes specified, when evaluated against the rest of the Expression, return a value of true, then this function will return true. Otherwise, this function will return false.

Subject Type: No Subject

  • Regex : One or more Regular Expressions (in the Java Pattern syntax) to evaluate against attribute names

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.23. Table 23. anyMatchingAttributes Examples

Expression

Value

${allMatchingAttributes("[ax].*"):contains("world")}

true

${allMatchingAttributes(".*"):isNull()}

false

${allMatchingAttributes("f.*"):count()}

1