org.xfp.filters.jxpath
Class JXPathGetValue

java.lang.Object
  extended byorg.xfp.AttributeContainer
      extended byorg.xfp.Filter
          extended byorg.xfp.filters.jxpath.JXPathAbstractFilter
              extended byorg.xfp.filters.jxpath.JXPathGetValue

public class JXPathGetValue
extends JXPathAbstractFilter

Evaluates the xpath, converts the result to the specified class and returns the resulting object.

Version:
$Id: JXPathGetValue.java,v 1.1 2004/03/19 15:56:31 flaviotordini Exp $
Author:
Flavio Tordini
JAR Dependency:
Apache JXPath (Jakarta Commons)

Nested Class Summary
 
Nested classes inherited from class org.xfp.Filter
Filter.OnErrorEnum, Filter.OnLoopErrorEnum
 
Field Summary
 
Fields inherited from class org.xfp.AttributeContainer
name, parentContainer
 
Constructor Summary
JXPathGetValue()
           
 
Method Summary
 java.lang.Object execute(java.lang.Object bean)
          Executes this filter.
 void setRequiredType(java.lang.Class requiredType)
          Sets the required type.
protected  void subreset()
          Subclasses must reset their status within this method.
 
Methods inherited from class org.xfp.filters.jxpath.JXPathAbstractFilter
getXpath, reset, setXpath
 
Methods inherited from class org.xfp.Filter
getOnError, initialize, log, newInstance, perform, toString
 
Methods inherited from class org.xfp.AttributeContainer
configureAttributes, disposeAttributes, getAttributes, getFullName, getName, initializeAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JXPathGetValue

public JXPathGetValue()
Method Detail

execute

public java.lang.Object execute(java.lang.Object bean)
Executes this filter.

Parameters:
bean - The context bean
Returns:
the result object.

setRequiredType

public void setRequiredType(java.lang.Class requiredType)
Sets the required type.

Parameters:
requiredType - The required type to set

subreset

protected void subreset()
Description copied from class: JXPathAbstractFilter
Subclasses must reset their status within this method.

Specified by:
subreset in class JXPathAbstractFilter
See Also:
JXPathAbstractFilter.subreset()


Copyright © 2003-2004 XFP Team. All Rights Reserved.