Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » types » [javadoc | source]
org.apache.tools.ant.types
public class: FileList [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.types.DataType
         org.apache.tools.ant.types.FileList

All Implemented Interfaces:
    ResourceCollection, Cloneable

FileList represents an explicitly named list of files. FileLists are useful when you want to capture a list of files regardless of whether they currently exist. By contrast, FileSet operates as a filter, only returning the name of a matched file if it currently exists in the file system.
Nested Class Summary:
public static class  FileList.FileName  Inner class corresponding to the <file> nested element. 
Fields inherited from org.apache.tools.ant.types.DataType:
ref,  checked
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Constructor:
 public FileList() 
 protected FileList(FileList filelist) 
    A copy constructor.
    Parameters:
    filelist - a FileList value
Method from org.apache.tools.ant.types.FileList Summary:
addConfiguredFile,   getDir,   getFiles,   getRef,   isFilesystemOnly,   iterator,   setDir,   setFiles,   setRefid,   size
Methods from org.apache.tools.ant.types.DataType:
checkAttributesAllowed,   checkChildrenAllowed,   circularReference,   clone,   dieOnCircularReference,   dieOnCircularReference,   dieOnCircularReference,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getDataTypeName,   getRefid,   invokeCircularReferenceCheck,   isChecked,   isReference,   noChildrenAllowed,   setChecked,   setRefid,   toString,   tooManyAttributes
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.types.FileList Detail:
 public  void addConfiguredFile(FileList.FileName name) 
    Add a nested <file> nested element.
 public File getDir(Project p) 
 public String[] getFiles(Project p) 
    Returns the list of files represented by this FileList.
 protected FileList getRef(Project p) 
    Performs the check for circular references and returns the referenced FileList.
 public boolean isFilesystemOnly() 
    Always returns true.
 public Iterator iterator() 
    Fulfill the ResourceCollection contract.
 public  void setDir(File dir) throws BuildException 
    Set the dir attribute.
 public  void setFiles(String filenames) 
    Set the filenames attribute.
 public  void setRefid(Reference r) throws BuildException 
    Makes this instance in effect a reference to another FileList instance.

    You must not set another attribute or nest elements inside this element if you make it a reference.

 public int size() 
    Fulfill the ResourceCollection contract.