XDC - v. 0.6.1

net.sf.xdc.processing
Class PatternSelector

java.lang.Object
  extended bynet.sf.xdc.processing.FileSelector
      extended bynet.sf.xdc.processing.PatternSelector

public class PatternSelector
extends FileSelector

The PatternSelector class is an extension to the FileSelector class which allows to additionally restrict the set of selected files by specifying one or more PathDescriptors (wildcard expressions).

Since:
0.5
Version:
0.5
Author:
Jens Voß

Method Summary
protected  FileSelector moveToSubdir(java.lang.String subdirName)
          This method constructs a PatternSelector for a subdirectory of the current directory.
protected  java.io.File[] selectFiles()
          This method retrieves the collection of all selected files within this PatternSelector's directory which match the wildcard expression of one or more of its PathDescriptor objects.
 
Methods inherited from class net.sf.xdc.processing.FileSelector
getDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

selectFiles

protected java.io.File[] selectFiles()
This method retrieves the collection of all selected files within this PatternSelector's directory which match the wildcard expression of one or more of its PathDescriptor objects.

Overrides:
selectFiles in class FileSelector
Returns:
An array of files and directories in this PatternSelector's directory which match the wildcard pattern of at least one of its path descriptors

moveToSubdir

protected FileSelector moveToSubdir(java.lang.String subdirName)
This method constructs a PatternSelector for a subdirectory of the current directory.

Overrides:
moveToSubdir in class FileSelector
Parameters:
subdirName - The name of the subdirectory for which a new FileSelector is to be constructed
Returns:
A new PatternSelector whose directory is the subdirectory with the specified name

XDC - v. 0.6.1