Top Description Methods
org.apache.tools.ant

public Interface TypeAdapter

Known Direct Implementers
org.apache.tools.ant.taskdefs.AugmentReference, org.apache.tools.ant.TaskAdapter

Used to wrap types.

Method Summary

Modifier and TypeMethod and Description
public void
checkProxyClass(Class<?>
the class to be checked.
proxyClass
)

Check if the proxy class is compatible with this adapter - i.e. the adapter will be able to adapt instances of the give class.

public Project

Returns:

the project instance.
getProject
()

Gets the project

public Object

Returns:

the target proxy object
getProxy
()

Returns the proxy object.

public void
setProject(Project
the project instance.
p
)

Sets the project

public void
setProxy(Object
The target object. Must not be null.
o
)

Sets the proxy object, whose methods are going to be invoked by ant.

Method Detail

checkProxyClassback to summary
public void checkProxyClass(Class<?> proxyClass)

Check if the proxy class is compatible with this adapter - i.e. the adapter will be able to adapt instances of the give class.

Parameters
proxyClass:Class<?>

the class to be checked.

getProjectback to summary
public Project getProject()

Gets the project

Returns:Project

the project instance.

getProxyback to summary
public Object getProxy()

Returns the proxy object.

Returns:Object

the target proxy object

setProjectback to summary
public void setProject(Project p)

Sets the project

Parameters
p:Project

the project instance.

setProxyback to summary
public void setProxy(Object o)

Sets the proxy object, whose methods are going to be invoked by ant. A proxy object is normally the object defined by a <typedef/> task that is adapted by the "adapter" attribute.

Parameters
o:Object

The target object. Must not be null.