public class FileList extends DataType implements ResourceCollection
Modifier and Type | Class and Description |
---|---|
static class |
FileList.FileName
Inner class corresponding to the <file> nested element.
|
description, location, project
Modifier | Constructor and Description |
---|---|
|
FileList()
The default constructor.
|
protected |
FileList(FileList filelist)
A copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredFile(FileList.FileName name)
Add a nested <file> nested element.
|
java.io.File |
getDir(Project p) |
java.lang.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.
|
boolean |
isFilesystemOnly()
Always returns true.
|
java.util.Iterator<Resource> |
iterator()
Fulfill the ResourceCollection contract.
|
void |
setDir(java.io.File dir)
Set the dir attribute.
|
void |
setFiles(java.lang.String filenames)
Set the filenames attribute.
|
void |
setRefid(Reference r)
Makes this instance in effect a reference to another FileList
instance.
|
int |
size()
Fulfill the ResourceCollection contract.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public FileList()
protected FileList(FileList filelist)
filelist
- a FileList
valuepublic void setRefid(Reference r) throws BuildException
You must not set another attribute or nest elements inside this element if you make it a reference.
setRefid
in class DataType
r
- the reference to another filelist.BuildException
- if an error occurs.public void setDir(java.io.File dir) throws BuildException
dir
- the directory this filelist is relative to.BuildException
- if an error occurspublic java.io.File getDir(Project p)
p
- the current projectpublic void setFiles(java.lang.String filenames)
filenames
- a string containing filenames, separated by comma or
by whitespace.public java.lang.String[] getFiles(Project p)
p
- the current projectprotected FileList getRef(Project p)
p
- the current projectpublic void addConfiguredFile(FileList.FileName name)
name
- a configured file element with a name.public java.util.Iterator<Resource> iterator()
iterator
in interface java.lang.Iterable<Resource>
iterator
in interface ResourceCollection
public int size()
size
in interface ResourceCollection
public boolean isFilesystemOnly()
isFilesystemOnly
in interface ResourceCollection