public static class PreSetDef.PreSetDefinition extends AntTypeDefinition
AntTypeDefinition| Constructor | Description |
|---|---|
PreSetDefinition(AntTypeDefinition parent,
UnknownElement el) |
Creates a new
PresetDefinition instance. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkClass(Project project) |
Check if the attributes are correct.
|
java.lang.Object |
create(Project project) |
Fake create an object, used by IntrospectionHelper and UnknownElement
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() |
Get the preset values.
|
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.
|
getName, innerCreateAndSet, innerGetTypeClass, isRestrict, setName, setRestrictpublic PreSetDefinition(AntTypeDefinition parent, UnknownElement el)
PresetDefinition instance.parent - The parent of this predefinition.el - The predefined attributes, nested elements and text.public void setClass(java.lang.Class<?> clazz)
setClass in class AntTypeDefinitionclazz - a Class value.public void setClassName(java.lang.String className)
setClassName in class AntTypeDefinitionclassName - a String value.public java.lang.String getClassName()
getClassName in class AntTypeDefinitionpublic void setAdapterClass(java.lang.Class<?> adapterClass)
setAdapterClass in class AntTypeDefinitionadapterClass - the adapterClass.public void setAdaptToClass(java.lang.Class<?> adaptToClass)
setAdaptToClass in class AntTypeDefinitionadaptToClass - the assignable class.public void setClassLoader(java.lang.ClassLoader classLoader)
setClassLoader in class AntTypeDefinitionclassLoader - the classLoader.public 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 project.public 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 definition.project - the current project.public boolean similarDefinition(AntTypeDefinition other, Project project)
similarDefinition in class AntTypeDefinitionother - another definition.project - the current project.