Class TypeFound
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.taskdefs.condition.TypeFound
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- Condition
 
 public class TypeFound extends ProjectComponent implements Condition looks for a task or other Ant type that exists. Existence is defined as the type is defined, and its implementation class is present. This will work for datatypes and preset, script and macro definitions.
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description TypeFound()
 - 
Method SummaryModifier and Type Method Description protected booleandoesTypeExist(java.lang.String typename)test for a task or other ant type existing in the current projectbooleaneval()Is this condition true?voidsetName(java.lang.String name)the task or other type to look forvoidsetURI(java.lang.String uri)The URI for this definition.- 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setNamepublic void setName(java.lang.String name) the task or other type to look for- Parameters:
- name- the name of the type
 
 - 
setURIpublic void setURI(java.lang.String uri) The URI for this definition.- Parameters:
- uri- the namespace URI. If this is not set, use the default ant namespace.
 
 - 
doesTypeExistprotected boolean doesTypeExist(java.lang.String typename) test for a task or other ant type existing in the current project- Parameters:
- typename- the name of the type
- Returns:
- true if the typename exists
 
 - 
evalpublic boolean eval() throws BuildExceptionIs this condition true?- Specified by:
- evalin interface- Condition
- Returns:
- true if the condition is true
- Throws:
- BuildException- if an error occurs
 
 
- 
 
-