Class ListChildrenTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.sling.scripting.jsp.taglib.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.TagSupportTag 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 Summary
Constructors Constructor Description ListChildrenTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()ResourcegetResource()Gets the resource of which to list the children.java.lang.StringgetVar()Gets the variable name to which to save the list of children.voidsetResource(Resource resource)Sets the resource of which to list the children.voidsetVar(java.lang.String var)Sets the variable name to which to save the list of children.
-
-
-
Method Detail
-
doEndTag
public int doEndTag()
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.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
-
-