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 , 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 predefintion.el
- The predefined attributes, nested elements and text.
create
public Object create(Project project)
Fake create an object, used by IH and UE 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 IH and UE.
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()
- the predefined attributes, elements and text as
a UnknownElement
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.
NOTE 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
- 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
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.