org.apache.tools.ant.taskdefs
Class PreSetDef.PreSetDefinition
- PreSetDef
public static class PreSetDef.PreSetDefinition
This class contains the unknown element and the object
that is predefined.
checkClass , create , getClassLoader , getClassName , getExposedClass , getName , getTypeClass , innerCreateAndSet , innerGetTypeClass , sameDefinition , setAdaptToClass , setAdapterClass , setClass , setClassLoader , setClassName , setName , similarDefinition |
PreSetDefinition
public PreSetDefinition(AntTypeDefinition parent,
UnknownElement el)
Creates a new PresetDefinition
instance.
parent
- The parent of this predefinition.el
- The predefined attributes, nested elements and text.
create
public Object create(Project project)
Fake create an object, used by IntrospectionHelper and UnknownElement
to see that this is a predefined object.
- create in interface AntTypeDefinition
project
- the current project.
createObject
public Object createObject(Project project)
Create an instance of the definition. The instance may be wrapped
in a proxy class. This is a special version of create for
IntrospectionHelper and UnknownElement.
project
- the current project.
getClassLoader
public ClassLoader getClassLoader()
Get the classloader for this definition.
- getClassLoader in interface AntTypeDefinition
- the classloader for this definition.
getClassName
public String getClassName()
Get the classname of the definition.
- getClassName in interface AntTypeDefinition
- the name of the class of this definition.
getPreSets
public UnknownElement getPreSets()
Get the preset values.
- the predefined attributes, elements and text as
an UnknownElement.
getTypeClass
public Class getTypeClass(Project project)
Get the definition class.
- getTypeClass in interface AntTypeDefinition
project
- the current project.
- the type of the definition.
setAdaptToClass
public void setAdaptToClass(Class adaptToClass)
Set the assignable class for this definition.
NOT SUPPORTED
- setAdaptToClass in interface AntTypeDefinition
adaptToClass
- the assignable class.
setAdapterClass
public void setAdapterClass(Class adapterClass)
Set the adapter class for this definition.
NOT Supported
- setAdapterClass in interface AntTypeDefinition
adapterClass
- the adapterClass.
setClassLoader
public void setClassLoader(ClassLoader classLoader)
Set the classloader to use to create an instance
of the definition.
NOT SUPPORTED
- setClassLoader in interface AntTypeDefinition
classLoader
- the classLoader.
setClassName
public void setClassName(String className)
Override so that it is not allowed.
- setClassName in interface AntTypeDefinition
className
- a String
value.