net.sf.fikin.ant
Class XPathTask.Select

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

public class XPathTask.Select
extends IfUnless

Represents a value-of nested tag created on Jan 3, 2007

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

Constructor Summary
XPathTask.Select()
           
 
Method Summary
 void check(org.apache.tools.ant.Task task)
          check if parent is ok and classname has been set
 void compileXPathExpression()
          compile the expression into an XPathExpression object
 java.lang.Object evaluate(org.w3c.dom.Node root)
          evaluate the expression against that root and return the result
 javax.xml.xpath.XPathExpression getExpt()
          instantiate the expression if needed
 java.lang.String getSelect()
           
 void setSelect(java.lang.String select)
          set xpath select expression
 
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.Select

public XPathTask.Select()
Method Detail

compileXPathExpression

public void compileXPathExpression()
                            throws javax.xml.xpath.XPathExpressionException
compile the expression into an XPathExpression object

Throws:
javax.xml.xpath.XPathExpressionException

getExpt

public javax.xml.xpath.XPathExpression getExpt()
                                        throws javax.xml.xpath.XPathExpressionException
instantiate the expression if needed

Returns:
expr
Throws:
javax.xml.xpath.XPathExpressionException

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

compile the expression if not that yet

Parameters:
root -
Returns:
xpath result as String
Throws:
javax.xml.xpath.XPathExpressionException

setSelect

public void setSelect(java.lang.String select)
set xpath select expression

Parameters:
select - xpath select expression
Ant Task Param Required:
true

getSelect

public java.lang.String getSelect()
Returns:
select attribute value

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

Parameters:
task - is enclosing ant task
Throws:
org.apache.tools.ant.BuildException


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