timeBagSize Function Description

Description

This function allows users to measure the size of a bag of type time. Being able to determine the bag's size can help with use cases such as enforcing there be at least 1 value, for instance at least one citizenship.

timeBagSize belongs to the ALFA function reference's Bag functions category. It maps to the XACML function identifier urn:oasis:names:tc:xacml:1.0:function:time-bag-size, takes 1 argument and returns a value of type integer.

Property Value
Category Bag functions
# Arguments 1
Arguments
  • a bag of type time which size we want to determine.
Return Value integer
Expressed As pre-fix
Representation ALFA short name
Allowed In Target false
ALFA Shorthand None
Commutative false

Example