Methods Summary |
---|
public org.w3c.dom.Node | getContext()
// expose the current node as the context
return current;
|
protected boolean | hasNext()
return (nodesIndex < nodes.size());
|
private void | init()
select = null;
nodes = null;
nodesIndex = 0;
current = null;
|
protected java.lang.Object | next()
Object o = nodes.get(nodesIndex++);
if (!(o instanceof org.w3c.dom.Node))
throw new JspTagException(
Resources.getMessage("FOREACH_NOT_NODESET"));
current = (org.w3c.dom.Node) o;
return current;
|
protected void | prepare()
nodesIndex = 0;
XPathUtil xu = new XPathUtil(pageContext);
nodes = xu.selectNodes(XPathUtil.getContext(this), select);
|
public void | release()
init();
super.release();
|
public void | setBegin(int begin)
this.beginSpecified = true;
this.begin = begin;
validateBegin();
|
public void | setEnd(int end)
this.endSpecified = true;
this.end = end;
validateEnd();
|
public void | setSelect(java.lang.String select)
this.select = select;
|
public void | setStep(int step)
this.stepSpecified = true;
this.step = step;
validateStep();
|