Class VelocityContainerItem


  • public class VelocityContainerItem
    extends VelocityContextItem
    VelocityContextItem for container, i.e., sets and sequences. This facilitates iteration through the nested elements as well to return its size.
    Author:
    El-Sharkawy
    • Constructor Summary

      Constructors 
      Constructor Description
      VelocityContainerItem​(java.lang.String variableName, java.util.List<java.lang.Object> values)
      Single constructor for this class.
    • Constructor Detail

      • VelocityContainerItem

        public VelocityContainerItem​(java.lang.String variableName,
                                     java.util.List<java.lang.Object> values)
        Single constructor for this class.
        Parameters:
        variableName - The name of the container.
        values - the nested values, must not be null.
    • Method Detail

      • size

        public int size()
        Returns the number of nested values.
        Returns:
        A value greater or equal to 0.