ExtendSelector (Apache Ant API)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.types.DataType | +--org.apache.tools.ant.types.selectors.BaseSelector | +--org.apache.tools.ant.types.selectors.ExtendSelector
Selector that selects files by forwarding the request on to other classes.
Field Summary |
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, description, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
ExtendSelector()
Default constructor. |
Method Summary | |
void |
addParam(Parameter p)
Create new parameters to pass to custom selector. |
Path |
createClasspath()
Specify the classpath to use to load the Selector (nested element). |
Path |
getClasspath()
Get the classpath |
boolean |
isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file)
Allows the custom selector to choose whether to select a file. |
void |
selectorCreate()
Instantiates the identified custom selector class. |
void |
setClassname(java.lang.String classname)
Sets the classname of the custom selector. |
void |
setClasspath(Path classpath)
Set the classpath to load the classname specified using an attribute. |
void |
setClasspathref(Reference r)
Set the classpath to use for loading a custom selector by using a reference. |
void |
verifySettings()
These are errors specific to ExtendSelector only. |
Methods inherited from class org.apache.tools.ant.types.selectors.BaseSelector |
getError, setError, validate |
Methods inherited from class org.apache.tools.ant.types.DataType |
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, setRefid, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtendSelector()
Method Detail |
public void setClassname(java.lang.String classname)
classname
- is the class which implements this selectorpublic void selectorCreate()
public void addParam(Parameter p)
p
- The new Parameter objectpublic final void setClasspath(Path classpath)
public final Path createClasspath()
public final Path getClasspath()
public void setClasspathref(Reference r)
public void verifySettings()
verifySettings
in class BaseSelector
public boolean isSelected(java.io.File basedir, java.lang.String filename, java.io.File file) throws BuildException
isSelected
in interface FileSelector
isSelected
in class BaseSelector
basedir
- A java.io.File object for the base directoryfilename
- The name of the file to checkfile
- A File object for this filename
BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |