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 IntrospectionHelper and UnknownElement
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()
Get the preset values. |
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 predefinition. 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 an 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 similar.