Class FindResourcesTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.sling.scripting.jsp.taglib.FindResourcesTag
-
- All Implemented Interfaces:
java.io.Serializable,IterationTag,JspTag,Tag
public class FindResourcesTag extends TagSupport
Tag for searching for resources using the given query formulated in the given language.- 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 FindResourcesTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()Default processing of the end tag returning EVAL_PAGE.java.lang.StringgetLanguage()Gets the language.java.lang.StringgetQuery()Gets the query.java.lang.StringgetVar()Gets the variable name to which to save the list of children.voidsetLanguage(java.lang.String language)Sets the language.voidsetQuery(java.lang.String query)Sets the query.voidsetVar(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
-
-
-
-
Method Detail
-
doEndTag
public int doEndTag()
Description copied from class:TagSupportDefault processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- EVAL_PAGE
- See Also:
Tag.doEndTag()
-
getLanguage
public java.lang.String getLanguage()
Gets the language.- Returns:
- the language
-
getQuery
public java.lang.String getQuery()
Gets the query.- Returns:
- the query
-
getVar
public java.lang.String getVar()
Gets the variable name to which to save the list of children.- Returns:
- the variable name
-
setLanguage
public void setLanguage(java.lang.String language)
Sets the language.- Parameters:
language- the new language
-
setQuery
public void setQuery(java.lang.String query)
Sets the query.- Parameters:
query- the new query
-
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
-
-