public static class PreSetDef.PreSetDefinition extends AntTypeDefinition
AntTypeDefinition
Constructor and Description |
---|
PreSetDefinition(AntTypeDefinition parent,
UnknownElement el)
Creates a new
PresetDefinition instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.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(java.lang.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.
|
getName, innerCreateAndSet, innerGetTypeClass, isRestrict, setName, setRestrict
public PreSetDefinition(AntTypeDefinition parent, UnknownElement el)
PresetDefinition
instance.parent
- The parent of this predefinition.el
- The predefined attributes, nested elements and text.public void checkClass(Project project)
checkClass
in class AntTypeDefinition
project
- the current project.public Object create(Project project)
create
in class AntTypeDefinition
project
- the current project.public Object createObject(Project project)
project
- the current project.public java.lang.ClassLoader getClassLoader()
getClassLoader
in class AntTypeDefinition
public String getClassName()
getClassName
in class AntTypeDefinition
public Class getExposedClass(Project project)
getExposedClass
in class AntTypeDefinition
project
- the current project.public UnknownElement getPreSets()
public Class getTypeClass(Project project)
getTypeClass
in class AntTypeDefinition
project
- the current project.public boolean sameDefinition(AntTypeDefinition other, Project project)
sameDefinition
in class AntTypeDefinition
other
- another definition.project
- the current project.public void setAdapterClass(Class adapterClass)
setAdapterClass
in class AntTypeDefinition
adapterClass
- the adapterClass.public void setAdaptToClass(Class adaptToClass)
setAdaptToClass
in class AntTypeDefinition
adaptToClass
- the assignable class.public void setClass(Class clazz)
setClass
in class AntTypeDefinition
clazz
- a Class
value.public void setClassLoader(java.lang.ClassLoader classLoader)
setClassLoader
in class AntTypeDefinition
classLoader
- the classLoader.public void setClassName(String className)
setClassName
in class AntTypeDefinition
className
- a String
value.public boolean similarDefinition(AntTypeDefinition other, Project project)
similarDefinition
in class AntTypeDefinition
other
- another definition.project
- the current project.