net.sf.fikin.ant
Class XPathTask.ForEach

java.lang.Object
  extended by net.sf.fikin.ant.types.IfUnless
      extended by net.sf.fikin.ant.XPathTask.Select
          extended by net.sf.fikin.ant.XPathTask.ForEach
All Implemented Interfaces:
Type
Enclosing class:
XPathTask

public class XPathTask.ForEach
extends XPathTask.Select

Represents a for-each nested tag created on Jan 3, 2007

Since:
Version:
$Revision: 1.7 $
Author:
fiykov

Constructor Summary
XPathTask.ForEach()
           
 
Method Summary
 void check(org.apache.tools.ant.Task task)
          check if parent is ok and classname has been set
 XPathTask.Select createValueOf()
          create value-of nested tag return valueOf nested value-of tag
 java.lang.Object evaluate(org.w3c.dom.Node root)
          evaluate the expression against that root and return the result
 java.util.List getValueOf()
           
 
Methods inherited from class net.sf.fikin.ant.XPathTask.Select
compileXPathExpression, getExpt, getSelect, setSelect
 
Methods inherited from class net.sf.fikin.ant.types.IfUnless
setIf, setUnless, shouldUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathTask.ForEach

public XPathTask.ForEach()
Method Detail

evaluate

public java.lang.Object evaluate(org.w3c.dom.Node root)
                          throws javax.xml.xpath.XPathExpressionException
evaluate the expression against that root and return the result

Overrides:
evaluate in class XPathTask.Select
Parameters:
root -
Returns:
xpath result as NodeList
Throws:
javax.xml.xpath.XPathExpressionException

createValueOf

public XPathTask.Select createValueOf()
create value-of nested tag return valueOf nested value-of tag

Ant Task Param Required:
false

getValueOf

public java.util.List getValueOf()
Returns:
value-of nested tags

check

public void check(org.apache.tools.ant.Task task)
           throws org.apache.tools.ant.BuildException
check if parent is ok and classname has been set

Specified by:
check in interface Type
Overrides:
check in class XPathTask.Select
Parameters:
task - is enclosing ant task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.