net.sourceforge.taverna.publish
Class XPathFileSelector

java.lang.Object
  extended by net.sourceforge.taverna.publish.XPathFileSelector
All Implemented Interfaces:
org.apache.commons.vfs.FileSelector

public class XPathFileSelector
extends java.lang.Object
implements org.apache.commons.vfs.FileSelector

This class accepts a file if the file contains at least one node that matches the XPath query. Last edited by $Author: sowen70 $

Version:
$Revision: 1.2 $
Author:
Mark

Constructor Summary
XPathFileSelector(java.lang.String path)
          Constructor
XPathFileSelector(java.lang.String path, boolean recurseDirectories)
          Constructor
 
Method Summary
 boolean includeFile(org.apache.commons.vfs.FileSelectInfo info)
           
 boolean traverseDescendents(org.apache.commons.vfs.FileSelectInfo arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathFileSelector

public XPathFileSelector(java.lang.String path)
Constructor

Parameters:
path -

XPathFileSelector

public XPathFileSelector(java.lang.String path,
                         boolean recurseDirectories)
Constructor

Parameters:
path -
recurseDirectories -
Method Detail

includeFile

public boolean includeFile(org.apache.commons.vfs.FileSelectInfo info)
                    throws java.lang.Exception
Specified by:
includeFile in interface org.apache.commons.vfs.FileSelector
Throws:
java.lang.Exception
See Also:
FileSelector.includeFile(org.apache.commons.vfs.FileSelectInfo)

traverseDescendents

public boolean traverseDescendents(org.apache.commons.vfs.FileSelectInfo arg0)
                            throws java.lang.Exception
Specified by:
traverseDescendents in interface org.apache.commons.vfs.FileSelector
Throws:
java.lang.Exception
See Also:
FileSelector.traverseDescendents(org.apache.commons.vfs.FileSelectInfo)