Java Doc for AntTypeDefinition.java in  » Build » ANT » org » apache » tools » ant » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.AntTypeDefinition

AntTypeDefinition
public class AntTypeDefinition (Code)
This class contains all the information on a particular ant type, the classname, adaptor and the class it should be assignable from. This type replaces the task/datatype split of pre ant 1.6.




Method Summary
public  voidcheckClass(Project project)
     Checks if the attributes are correct.
public  Objectcreate(Project project)
     Create an instance of the definition. The instance may be wrapped in a proxy class.
Parameters:
  project - the current project.
public  ClassLoadergetClassLoader()
     Get the classloader for this definition.
public  StringgetClassName()
     Get the classname of the definition.
public  ClassgetExposedClass(Project project)
     Get the exposed class for this definition.
public  StringgetName()
     Return the definition's name.
public  ClassgetTypeClass(Project project)
     Get the definition class.
Parameters:
  project - the current project.
public  ObjectinnerCreateAndSet(Class newclass, Project project)
    
public  ClassinnerGetTypeClass()
     Try and load a class, with no attempt to catch any fault.
public  booleansameDefinition(AntTypeDefinition other, Project project)
     Equality method for this definition (assumes the names are the same).
Parameters:
  other - another definition.
Parameters:
  project - the project the definition.
public  voidsetAdaptToClass(Class adaptToClass)
     Set the assignable class for this definition.
public  voidsetAdapterClass(Class adapterClass)
     Set the adapter class for this definition.
public  voidsetClass(Class clazz)
     Set the class of the definition.
public  voidsetClassLoader(ClassLoader classLoader)
     Set the classloader to use to create an instance of the definition.
public  voidsetClassName(String className)
     Set the classname of the definition.
public  voidsetName(String name)
     Set the definition's name.
public  booleansimilarDefinition(AntTypeDefinition other, Project project)
     Similar definition; used to compare two definitions defined twice with the same name and the same types. The classloader may be different but have the same path so #sameDefinition cannot be used.
Parameters:
  other - the definition to compare to.
Parameters:
  project - the current project.



Method Detail
checkClass
public void checkClass(Project project)(Code)
Checks if the attributes are correct.
  • if the class can be created.
  • if an adapter class can be created
  • if the type is assignable from adapto
  • if the type can be used with the adapter class

  • Parameters:
      project - the current project.



    create
    public Object create(Project project)(Code)
    Create an instance of the definition. The instance may be wrapped in a proxy class.
    Parameters:
      project - the current project. the created object.



    getClassLoader
    public ClassLoader getClassLoader()(Code)
    Get the classloader for this definition. the classloader for this definition.



    getClassName
    public String getClassName()(Code)
    Get the classname of the definition. the name of the class of this definition.



    getExposedClass
    public Class getExposedClass(Project project)(Code)
    Get the exposed class for this definition. This will be a proxy class (adapted class) if there is an adapter class and the definition class is not assignable from the assignable class.
    Parameters:
      project - the current project. the exposed class.



    getName
    public String getName()(Code)
    Return the definition's name. the name of the definition.



    getTypeClass
    public Class getTypeClass(Project project)(Code)
    Get the definition class.
    Parameters:
      project - the current project. the type of the definition.



    innerCreateAndSet
    public Object innerCreateAndSet(Class newclass, Project project) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)
    Inner implementation of the AntTypeDefinition.createAndSet(Project,Class) logic, with no exception catching
    Parameters:
      newclass - class to create
    Parameters:
      project - the project to use a newly constructed and bound instance.
    throws:
      NoSuchMethodException - no good construtor.
    throws:
      InstantiationException - cannot initialize the object.
    throws:
      IllegalAccessException - cannot access the object.
    throws:
      InvocationTargetException - error in invocation.



    innerGetTypeClass
    public Class innerGetTypeClass() throws ClassNotFoundException(Code)
    Try and load a class, with no attempt to catch any fault. the class that implements this component
    throws:
      ClassNotFoundException - if the class cannot be found.
    throws:
      NoClassDefFoundError - if the there is an errorfinding the class.



    sameDefinition
    public boolean sameDefinition(AntTypeDefinition other, Project project)(Code)
    Equality method for this definition (assumes the names are the same).
    Parameters:
      other - another definition.
    Parameters:
      project - the project the definition. true if the definitions are the same.



    setAdaptToClass
    public void setAdaptToClass(Class adaptToClass)(Code)
    Set the assignable class for this definition.
    Parameters:
      adaptToClass - the assignable class.



    setAdapterClass
    public void setAdapterClass(Class adapterClass)(Code)
    Set the adapter class for this definition. This class is used to adapt the definitions class if required.
    Parameters:
      adapterClass - the adapterClass.



    setClass
    public void setClass(Class clazz)(Code)
    Set the class of the definition. As a side-effect may set the classloader and classname.
    Parameters:
      clazz - the class of this definition.



    setClassLoader
    public void setClassLoader(ClassLoader classLoader)(Code)
    Set the classloader to use to create an instance of the definition.
    Parameters:
      classLoader - the ClassLoader.



    setClassName
    public void setClassName(String className)(Code)
    Set the classname of the definition.
    Parameters:
      className - the classname of this definition.



    setName
    public void setName(String name)(Code)
    Set the definition's name.
    Parameters:
      name - the name of the definition.



    similarDefinition
    public boolean similarDefinition(AntTypeDefinition other, Project project)(Code)
    Similar definition; used to compare two definitions defined twice with the same name and the same types. The classloader may be different but have the same path so #sameDefinition cannot be used.
    Parameters:
      other - the definition to compare to.
    Parameters:
      project - the current project. true if the definitions are the same.



    Methods inherited from java.lang.Object
    native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
    public boolean equals(Object obj)(Code)(Java Doc)
    protected void finalize() throws Throwable(Code)(Java Doc)
    final native public Class getClass()(Code)(Java Doc)
    native public int hashCode()(Code)(Java Doc)
    final native public void notify()(Code)(Java Doc)
    final native public void notifyAll()(Code)(Java Doc)
    public String toString()(Code)(Java Doc)
    final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
    final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
    final public void wait() throws InterruptedException(Code)(Java Doc)

    www.java2java.com | Contact Us
    Copyright 2009 - 12 Demo Source and Support. All rights reserved.
    All other trademarks are property of their respective owners.