Class AdaptToTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.AdaptToTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
Tag for adapting adaptables to classes.
- See Also:
-
Field Summary
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Default processing of the end tag returning EVAL_PAGE.Get the adaptable object to be adapted.Gets the class name to adapt the adaptable to.getVar()Gets the variable name to save the resulting object to.voidsetAdaptable(Adaptable adaptable) Sets the adaptable object to be adapted.voidsetAdaptTo(String adaptTo) Sets the class name to adapt the adaptable to.voidGets the variable name to save the resulting object to.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
AdaptToTag
public AdaptToTag()
-
-
Method Details
-
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:
-
getAdaptable
Get the adaptable object to be adapted.- Returns:
- the adaptable
-
getAdaptTo
Gets the class name to adapt the adaptable to.- Returns:
- the class to adapt to
-
getVar
Gets the variable name to save the resulting object to.- Returns:
- the variable name
-
setAdaptable
Sets the adaptable object to be adapted.- Parameters:
adaptable- the object to adapt
-
setAdaptTo
Sets the class name to adapt the adaptable to.- Parameters:
adaptTo- the class to adapt to
-
setVar
Gets the variable name to save the resulting object to.- Parameters:
var- the variable name
-