public class ExtendSelector extends BaseSelector
description, location, project
Constructor and Description |
---|
ExtendSelector()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getError, setError, setError, validate
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
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)
classpath
- the classpath to usepublic final Path createClasspath()
public final Path getClasspath()
public void setClasspathref(Reference r)
r
- a reference to the classpathpublic 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
- The the base directory.filename
- The name of the file to check.file
- A File object for this filename.BuildException
- if an error occurs.