Class ListChildrenTag

  • All Implemented Interfaces:
    java.io.Serializable, IterationTag, JspTag, Tag

    public class ListChildrenTag
    extends TagSupport
    Tag for listing the children of a Resource. The children will be returned as an Iterator of Resource objects in the specified variable.
    See Also:
    Serialized Form
    • Constructor Detail

      • ListChildrenTag

        public ListChildrenTag()
    • Method Detail

      • getResource

        public Resource getResource()
        Gets the resource of which to list the children.
        Returns:
        the Sling Resource
      • getVar

        public java.lang.String getVar()
        Gets the variable name to which to save the list of children.
        Returns:
        the variable name
      • setResource

        public void setResource​(Resource resource)
        Sets the resource of which to list the children.
        Parameters:
        resource - the Sling Resource
      • setVar

        public void setVar​(java.lang.String var)
        Sets the variable name to which to save the list of children.
        Parameters:
        var - the variable name