|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.AntTypeDefinition
This class contains all the information on a particular ant type, the classname, adaptor and the class it should be assignable from. This type replaces the task/datatype split of pre ant 1.6.
Constructor Summary | |
AntTypeDefinition()
|
Method Summary | |
void |
checkClass(Project project)
Checks if the attributes are correct. |
java.lang.Object |
create(Project project)
create an instance of the definition. |
java.lang.ClassLoader |
getClassLoader()
get the classloader for this definition |
java.lang.String |
getClassName()
get the classname of the definition |
java.lang.Class |
getExposedClass(Project project)
get the exposed class for this definition. |
java.lang.String |
getName()
return the definition's name |
java.lang.Class |
getTypeClass(Project project)
get the definition class |
boolean |
sameDefinition(AntTypeDefinition other,
Project project)
Equality method for this definition (assumes the names are the same) |
void |
setAdapterClass(java.lang.Class adapterClass)
set the adapter class for this definition. |
void |
setAdaptToClass(java.lang.Class adaptToClass)
set the assignable class for this definition. |
void |
setClass(java.lang.Class clazz)
set the class of the definition. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
set the classloader to use to create an instance of the definition |
void |
setClassName(java.lang.String className)
set the classname of the definition |
void |
setName(java.lang.String name)
set the definition's name |
boolean |
similarDefinition(AntTypeDefinition other,
Project project)
Similar definition used to compare two definitions defined twice with the same name and the same types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AntTypeDefinition()
Method Detail |
public void setName(java.lang.String name)
name
- the name of the definitionpublic java.lang.String getName()
public void setClass(java.lang.Class clazz)
clazz
- the class of this definitionpublic void setClassName(java.lang.String className)
className
- the classname of this definitionpublic java.lang.String getClassName()
public void setAdapterClass(java.lang.Class adapterClass)
adapterClass
- the adapterClasspublic void setAdaptToClass(java.lang.Class adaptToClass)
adaptToClass
- the assignable classpublic void setClassLoader(java.lang.ClassLoader classLoader)
classLoader
- the classLoaderpublic java.lang.ClassLoader getClassLoader()
public java.lang.Class getExposedClass(Project project)
project
- the current project
public java.lang.Class getTypeClass(Project project)
project
- the current project
public java.lang.Object create(Project project)
project
- the current project
public void checkClass(Project project)
project
- the current projectpublic boolean sameDefinition(AntTypeDefinition other, Project project)
other
- another definitionproject
- the project the definition
public boolean similarDefinition(AntTypeDefinition other, Project project)
other
- the definition to compare toproject
- the current project
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |