org.apache.tools.ant.taskdefs
public static class PreSetDef.PreSetDefinition extends AntTypeDefinition
See Also: AntTypeDefinition
Constructor Summary | |
---|---|
PreSetDefinition(AntTypeDefinition parent, UnknownElement el)
Creates a new PresetDefinition instance.
|
Method Summary | |
---|---|
void | checkClass(Project project)
check if the attributes are correct |
Object | create(Project project)
Fake create an object, used by IH and UE to see that
this is a predefined object.
|
Object | createObject(Project project)
create an instance of the definition.
|
ClassLoader | getClassLoader()
get the classloader for this definition |
String | getClassName()
get the classname of the definition |
Class | getExposedClass(Project project)
get the exposed class for this definition. |
UnknownElement | getPreSets() |
Class | getTypeClass(Project project)
get the definition class |
boolean | sameDefinition(AntTypeDefinition other, Project project)
Equality method for this definition
|
void | setAdapterClass(Class adapterClass)
set the adapter class for this definition.
|
void | setAdaptToClass(Class adaptToClass)
set the assignable class for this definition.
|
void | setClass(Class clazz)
Override so that it is not allowed
|
void | setClassLoader(ClassLoader classLoader)
set the classloader to use to create an instance
of the definition |
void | setClassName(String className)
Override so that it is not allowed
|
boolean | similarDefinition(AntTypeDefinition other, Project project)
Similar method for this definition
|
PresetDefinition
instance.
Parameters: parent The parent of this predefintion. el The predefined attributes, nested elements and text.
Parameters: project the current project
Parameters: project the current project
Returns: this object
Parameters: project the current project
Returns: the created object
Returns: the classloader for this definition
Returns: the name of the class of this definition
Parameters: project the current project
Returns: the exposed class
Returns: the predefined attributes, elements and text as a UnknownElement
Parameters: project the current project
Returns: the type of the definition
Parameters: other another definition project the current project
Returns: true if the definitions are the same
Parameters: adapterClass the adapterClass
Parameters: adaptToClass the assignable class
Parameters: clazz a Class
value
Parameters: classLoader the classLoader
Parameters: className a String
value
Parameters: other another definition project the current project
Returns: true if the definitions are the same