|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.xtags.xpath.AbstractBodyTag
org.apache.taglibs.xtags.xpath.ForEachTag
public class ForEachTag
A tag which performs an iteration over the results of an XPath expression on an XML document
| Field Summary |
|---|
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| 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 | |
|---|---|
ForEachTag()
|
|
| Method Summary | |
|---|---|
void |
breakLoop()
Causes the iteration to be stopped like the Java 'break' statement. |
protected org.dom4j.XPath |
createXPath(java.lang.String xpathExpression)
A factory method to create new XPath instances |
int |
doAfterBody()
|
int |
doStartTag()
|
protected void |
finishLoop()
Finishes the loop and outputs the current body |
java.lang.Object |
getContext()
|
protected org.dom4j.DocumentFactory |
getDocumentFactory()
|
java.lang.String |
getId()
Getter for property id. |
java.lang.Object |
getInputNodes()
|
java.lang.String |
getType()
Getter for property type. |
protected boolean |
hasNext()
Performs an iteration and defines a variable of the current object |
boolean |
isAscending()
Getter for property ascending. |
boolean |
isDistinct()
Getter for property distinct. |
void |
release()
|
protected java.util.List |
selectNodes()
|
void |
setAscending(boolean ascending)
Setter for property ascending. |
void |
setContext(java.lang.Object context)
|
void |
setDistinct(boolean distinct)
Setter for property distinct. |
void |
setId(java.lang.String id)
Setter for property id. |
void |
setSelect(java.lang.String select)
Sets the select XPath expression |
void |
setSelectXPath(org.dom4j.XPath xpath)
Sets the XPath selection expression |
void |
setSort(java.lang.String sort)
Setter for property sort. |
void |
setSortXPath(org.dom4j.XPath sortXPath)
|
void |
setType(java.lang.String type)
Setter for property type. |
| Methods inherited from class org.apache.taglibs.xtags.xpath.AbstractBodyTag |
|---|
handleException, logError, logError, logInfo |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setPageContext, setParent |
| Constructor Detail |
|---|
public ForEachTag()
| Method Detail |
|---|
public void breakLoop()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic java.lang.Object getContext()
getContext in interface ContextNodeTagNode or List of nodes which is the context
on which XPath expressions will be performed.
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic void setContext(java.lang.Object context)
public void setSelect(java.lang.String select)
public void setSelectXPath(org.dom4j.XPath xpath)
public void setSort(java.lang.String sort)
sort - New value of property sort.public void setSortXPath(org.dom4j.XPath sortXPath)
public boolean isDistinct()
public void setDistinct(boolean distinct)
distinct - New value of property distinct.public java.lang.String getId()
getId in class javax.servlet.jsp.tagext.TagSupportpublic void setId(java.lang.String id)
setId in class javax.servlet.jsp.tagext.TagSupportid - New value of property id.public java.lang.String getType()
public void setType(java.lang.String type)
type - New value of property type.public boolean isAscending()
public void setAscending(boolean ascending)
ascending - New value of property ascending.protected java.util.List selectNodes()
public java.lang.Object getInputNodes()
protected void finishLoop()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected boolean hasNext()
protected org.dom4j.XPath createXPath(java.lang.String xpathExpression)
protected org.dom4j.DocumentFactory getDocumentFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||