|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.tools.ant.AntTypeDefinition
|
+--org.apache.tools.ant.taskdefs.PreSetDef.PreSetDefinition
This class contains the unknown element and the object that is predefined.
AntTypeDefinition| Constructor Summary | |
PreSetDef.PreSetDefinition(AntTypeDefinition parent,
UnknownElement el)
Creates a new PresetDefinition instance. |
|
| Method Summary | |
void |
checkClass(Project project)
check if the attributes are correct |
java.lang.Object |
create(Project project)
Fake create an object, used by IH and UE to see that this is a predefined object. |
java.lang.Object |
createObject(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. |
UnknownElement |
getPreSets()
|
java.lang.Class |
getTypeClass(Project project)
get the definition class |
boolean |
sameDefinition(AntTypeDefinition other,
Project project)
Equality method for this definition |
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)
Override so that it is not allowed |
void |
setClassLoader(java.lang.ClassLoader classLoader)
set the classloader to use to create an instance of the definition |
void |
setClassName(java.lang.String className)
Override so that it is not allowed |
boolean |
similarDefinition(AntTypeDefinition other,
Project project)
Similar method for this definition |
| Methods inherited from class org.apache.tools.ant.AntTypeDefinition |
getName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PreSetDef.PreSetDefinition(AntTypeDefinition parent,
UnknownElement el)
PresetDefinition instance.
parent - The parent of this predefintion.el - The predefined attributes, nested elements and text.| Method Detail |
public void setClass(java.lang.Class clazz)
setClass in class AntTypeDefinitionclazz - a Class valuepublic void setClassName(java.lang.String className)
setClassName in class AntTypeDefinitionclassName - a String valuepublic java.lang.String getClassName()
getClassName in class AntTypeDefinitionpublic void setAdapterClass(java.lang.Class adapterClass)
setAdapterClass in class AntTypeDefinitionadapterClass - the adapterClasspublic void setAdaptToClass(java.lang.Class adaptToClass)
setAdaptToClass in class AntTypeDefinitionadaptToClass - the assignable classpublic void setClassLoader(java.lang.ClassLoader classLoader)
setClassLoader in class AntTypeDefinitionclassLoader - the classLoaderpublic java.lang.ClassLoader getClassLoader()
getClassLoader in class AntTypeDefinitionpublic java.lang.Class getExposedClass(Project project)
getExposedClass in class AntTypeDefinitionproject - the current project
public java.lang.Class getTypeClass(Project project)
getTypeClass in class AntTypeDefinitionproject - the current project
public void checkClass(Project project)
checkClass in class AntTypeDefinitionproject - the current projectpublic java.lang.Object createObject(Project project)
project - the current project
public UnknownElement getPreSets()
public java.lang.Object create(Project project)
create in class AntTypeDefinitionproject - the current project
public boolean sameDefinition(AntTypeDefinition other,
Project project)
sameDefinition in class AntTypeDefinitionother - another definitionproject - the current project
public boolean similarDefinition(AntTypeDefinition other,
Project project)
similarDefinition in class AntTypeDefinitionother - another definitionproject - the current project
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||