public class GetParentsTag extends TagSupport
EVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
GetParentsTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE.
|
Resource |
getResource()
Gets the resource.
|
String |
getStartDepth()
Retrieves the start depth
|
String |
getVar()
Gets the variable name to which to save the list of children.
|
void |
setResource(Resource resource)
Sets the resource.
|
void |
setStartDepth(String startDepth)
The depth at which to start, for example given a path of:
/content/page1/page2/page3 and a start depth of 3, the parents page2/page3
would be returned
|
void |
setVar(String var)
Sets the variable name to which to save the parent resource.
|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValuepublic int doEndTag()
TagSupportdoEndTag in interface TagdoEndTag in class TagSupportTag.doEndTag()public Resource getResource()
public String getStartDepth()
public String getVar()
public void setResource(Resource resource)
resource - the new resourcepublic void setStartDepth(String startDepth)
startDepth - the start depth from which to retrieve the parent resourcespublic void setVar(String var)
var - the variable nameCopyright © 2010 - 2020 Adobe. All Rights Reserved