Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.condition

public Class TypeFound

extends ProjectComponent
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
org.apache.tools.ant.AntTypeDefinition, .BuildException, .ComponentHelper, .Project, .ProjectComponent, .ProjectHelper

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

Modifier and TypeField and Description
private String
private String
Inherited from org.apache.tools.ant.ProjectComponent:
descriptionlocationproject

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean

Returns:

true if the typename exists
doesTypeExist
(String
the name of the type
typename
)

test for a task or other ant type existing in the current project

public boolean

Returns:

true if the condition is true
eval
()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?
public void
setName(String
the name of the type
name
)

the task or other type to look for

public void
setURI(String
the namespace URI. If this is not set, use the default ant namespace.
uri
)

The URI for this definition.

Inherited from org.apache.tools.ant.ProjectComponent:
clonegetDescriptiongetLocationgetProjectloglogsetDescriptionsetLocationsetProject

Field Detail

nameback to summary
private String name
uriback to summary
private String uri

Constructor Detail

TypeFoundback to summary
public TypeFound()

Method Detail

doesTypeExistback to summary
protected boolean doesTypeExist(String typename)

test for a task or other ant type existing in the current project

Parameters
typename:String

the name of the type

Returns:boolean

true if the typename exists

evalback to summary
public boolean eval() throws BuildException

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?

Returns:boolean

true if the condition is true

Annotations
@Override
Exceptions
BuildException:
if an error occurs
setNameback to summary
public void setName(String name)

the task or other type to look for

Parameters
name:String

the name of the type

setURIback to summary
public void setURI(String uri)

The URI for this definition.

Parameters
uri:String

the namespace URI. If this is not set, use the default ant namespace.