net.sourceforge.taverna.publish
Class XPathFileSelector
java.lang.Object
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
|
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 |
XPathFileSelector
public XPathFileSelector(java.lang.String path)
- Constructor
- Parameters:
path -
XPathFileSelector
public XPathFileSelector(java.lang.String path,
boolean recurseDirectories)
- Constructor
- Parameters:
path - recurseDirectories -
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)