Class ListChildrenTag

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class ListChildrenTag
    extends javax.servlet.jsp.tagext.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
    • Field Summary

      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      ListChildrenTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doEndTag()  
      Resource getResource()
      Gets the resource of which to list the children.
      java.lang.String getVar()
      Gets the variable name to which to save the list of children.
      void setResource​(Resource resource)
      Sets the resource of which to list the children.
      void setVar​(java.lang.String var)
      Sets the variable name to which to save the list of children.
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListChildrenTag

        public ListChildrenTag()
    • Method Detail

      • doEndTag

        public int doEndTag()
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.TagSupport
      • 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