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.
|
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, 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 setClass(java.lang.Class clazz)
setClass
in class AntTypeDefinition
clazz
- a Class
value.public void setClassName(java.lang.String className)
setClassName
in class AntTypeDefinition
className
- a String
value.public java.lang.String getClassName()
getClassName
in class AntTypeDefinition
public void setAdapterClass(java.lang.Class adapterClass)
setAdapterClass
in class AntTypeDefinition
adapterClass
- the adapterClass.public void setAdaptToClass(java.lang.Class adaptToClass)
setAdaptToClass
in class AntTypeDefinition
adaptToClass
- the assignable class.public void setClassLoader(java.lang.ClassLoader classLoader)
setClassLoader
in class AntTypeDefinition
classLoader
- the classLoader.public java.lang.ClassLoader getClassLoader()
getClassLoader
in class AntTypeDefinition
public java.lang.Class getExposedClass(Project project)
getExposedClass
in class AntTypeDefinition
project
- the current project.public java.lang.Class getTypeClass(Project project)
getTypeClass
in class AntTypeDefinition
project
- the current project.public void checkClass(Project project)
checkClass
in class AntTypeDefinition
project
- 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 AntTypeDefinition
project
- the current project.public boolean sameDefinition(AntTypeDefinition other, Project project)
sameDefinition
in class AntTypeDefinition
other
- another definition.project
- the current project.public boolean similarDefinition(AntTypeDefinition other, Project project)
similarDefinition
in class AntTypeDefinition
other
- another definition.project
- the current project.