Package org.apache.tools.ant.taskdefs
Class PreSetDef.PreSetDefinition
java.lang.Object
org.apache.tools.ant.AntTypeDefinition
org.apache.tools.ant.taskdefs.PreSetDef.PreSetDefinition
- Enclosing class:
- PreSetDef
public static class PreSetDef.PreSetDefinition extends AntTypeDefinition
This class contains the unknown element and the object
 that is predefined.
- See Also:
- AntTypeDefinition
- 
Constructor SummaryConstructors Constructor Description PreSetDefinition(AntTypeDefinition parent, UnknownElement el)Creates a newPresetDefinitioninstance.
- 
Method SummaryModifier and Type Method Description voidcheckClass(Project project)Check if the attributes are correct.java.lang.Objectcreate(Project project)Fake create an object, used by IntrospectionHelper and UnknownElement to see that this is a predefined object.java.lang.ObjectcreateObject(Project project)Create an instance of the definition.java.lang.ClassLoadergetClassLoader()Get the classloader for this definition.java.lang.StringgetClassName()Get the classname of the definition.java.lang.Class<?>getExposedClass(Project project)Get the exposed class for this definition.UnknownElementgetPreSets()Get the preset values.java.lang.Class<?>getTypeClass(Project project)Get the definition class.booleansameDefinition(AntTypeDefinition other, Project project)Equality method for this definition.voidsetAdapterClass(java.lang.Class<?> adapterClass)Set the adapter class for this definition.voidsetAdaptToClass(java.lang.Class<?> adaptToClass)Set the assignable class for this definition.voidsetClass(java.lang.Class<?> clazz)Override so that it is not allowed.voidsetClassLoader(java.lang.ClassLoader classLoader)Set the classloader to use to create an instance of the definition.voidsetClassName(java.lang.String className)Override so that it is not allowed.booleansimilarDefinition(AntTypeDefinition other, Project project)Similar method for this definition.Methods inherited from class org.apache.tools.ant.AntTypeDefinitiongetName, innerCreateAndSet, innerGetTypeClass, isRestrict, setName, setRestrict
- 
Constructor Details- 
PreSetDefinitionCreates a newPresetDefinitioninstance.- Parameters:
- parent- The parent of this predefinition.
- el- The predefined attributes, nested elements and text.
 
 
- 
- 
Method Details- 
setClasspublic void setClass(java.lang.Class<?> clazz)Override so that it is not allowed.- Overrides:
- setClassin class- AntTypeDefinition
- Parameters:
- clazz- a- Classvalue.
 
- 
setClassNamepublic void setClassName(java.lang.String className)Override so that it is not allowed.- Overrides:
- setClassNamein class- AntTypeDefinition
- Parameters:
- className- a- Stringvalue.
 
- 
getClassNamepublic java.lang.String getClassName()Get the classname of the definition.- Overrides:
- getClassNamein class- AntTypeDefinition
- Returns:
- the name of the class of this definition.
 
- 
setAdapterClasspublic void setAdapterClass(java.lang.Class<?> adapterClass)Set the adapter class for this definition. NOT Supported- Overrides:
- setAdapterClassin class- AntTypeDefinition
- Parameters:
- adapterClass- the adapterClass.
 
- 
setAdaptToClasspublic void setAdaptToClass(java.lang.Class<?> adaptToClass)Set the assignable class for this definition. NOT SUPPORTED- Overrides:
- setAdaptToClassin class- AntTypeDefinition
- Parameters:
- adaptToClass- the assignable class.
 
- 
setClassLoaderpublic void setClassLoader(java.lang.ClassLoader classLoader)Set the classloader to use to create an instance of the definition. NOT SUPPORTED- Overrides:
- setClassLoaderin class- AntTypeDefinition
- Parameters:
- classLoader- the classLoader.
 
- 
getClassLoaderpublic java.lang.ClassLoader getClassLoader()Get the classloader for this definition.- Overrides:
- getClassLoaderin class- AntTypeDefinition
- Returns:
- the classloader for this definition.
 
- 
getExposedClassGet the exposed class for this definition.- Overrides:
- getExposedClassin class- AntTypeDefinition
- Parameters:
- project- the current project.
- Returns:
- the exposed class.
 
- 
getTypeClassGet the definition class.- Overrides:
- getTypeClassin class- AntTypeDefinition
- Parameters:
- project- the current project.
- Returns:
- the type of the definition.
 
- 
checkClassCheck if the attributes are correct.- Overrides:
- checkClassin class- AntTypeDefinition
- Parameters:
- project- the current project.
 
- 
createObjectCreate 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.- Parameters:
- project- the current project.
- Returns:
- the created object.
 
- 
getPreSetsGet the preset values.- Returns:
- the predefined attributes, elements and text as an UnknownElement.
 
- 
createFake create an object, used by IntrospectionHelper and UnknownElement to see that this is a predefined object.- Overrides:
- createin class- AntTypeDefinition
- Parameters:
- project- the current project.
- Returns:
- this object.
 
- 
sameDefinitionEquality method for this definition.- Overrides:
- sameDefinitionin class- AntTypeDefinition
- Parameters:
- other- another definition.
- project- the current project.
- Returns:
- true if the definitions are the same.
 
- 
similarDefinitionSimilar method for this definition.- Overrides:
- similarDefinitionin class- AntTypeDefinition
- Parameters:
- other- another definition.
- project- the current project.
- Returns:
- true if the definitions are similar.
 
 
-