Java Doc for ClassUtils.java in  » UML » AndroMDA-3.2 » org » andromda » core » common » 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 » UML » AndroMDA 3.2 » org.andromda.core.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.andromda.core.common.ClassUtils

ClassUtils
public class ClassUtils extends org.apache.commons.lang.ClassUtils (Code)
Contains utilities for dealing with classes.
author:
   Chad Brandon


Field Summary
final public static  StringCLASS_EXTENSION
     The suffix for class files.


Method Summary
public static  ClassfindClassOfType(URL directoryUris, Class type)
     Searches the contents of the directoryUri and returns the first Class found that is of the given type.
Parameters:
  directoryUris - the URIs to search, ie.
public static  ListgetAllMethods(Class clazz)
     Loads all methods from the given clazz (this includes all super class methods, public, private and protected).
Parameters:
  clazz - the class to retrieve the methods.
public static  ClassLoadergetClassLoader()
     Gets the appropriate class loader instance.
public static  ListgetInterfaces(String className)
     Retrieves all interfaces for the given className (including className itself, assuming it's an interface as well).
public static  ListgetInterfaces(Class clazz)
     Retrieves all interfaces for the given clazz (including clazz itself, assuming it's an interface as well).
public static  Class[]getInterfacesReversed(String className)
     Gets the interfaces for the given className in reverse order.
protected static  ClassgetPrimitiveClass(String name, ClassLoader loader)
    

Returns the type class name for a Java primitive.


Parameters:
  name - a String with the name of the type
Parameters:
  loader - the loader to use.
public static  CollectiongetStaticFieldValues(Class clazz, Class type)
     Returns a collection of all static fields values for the given clazz and type of field.
public static  booleanisClassOfTypePresent(URL directoryUris, Class type)
     Indicates whether or not a class of the given type is present in one of the given directoryUris.
Parameters:
  directoryUris - the URIs to search, ie.
protected static  booleanisPrimitiveType(String name)
    

Checks if a given type name is a Java primitive type.

public static  ClassloadClass(String className)
     Loads and returns the class having the className.
public static  ObjectnewInstance(String className)
     Creates a new instance of the class having the given className.
Parameters:
  className - the name of the class to instantiate.
public static  ObjectnewInstance(Class type)
     Creates a new instance of the class given the type.
Parameters:
  type - the type from which to instantiate the new instance.

Field Detail
CLASS_EXTENSION
final public static String CLASS_EXTENSION(Code)
The suffix for class files.





Method Detail
findClassOfType
public static Class findClassOfType(URL directoryUris, Class type)(Code)
Searches the contents of the directoryUri and returns the first Class found that is of the given type.
Parameters:
  directoryUris - the URIs to search, ie. directories or archives.
Parameters:
  type - the type to find. the class or null if not found.



getAllMethods
public static List getAllMethods(Class clazz)(Code)
Loads all methods from the given clazz (this includes all super class methods, public, private and protected).
Parameters:
  clazz - the class to retrieve the methods. the loaded methods.



getClassLoader
public static ClassLoader getClassLoader()(Code)
Gets the appropriate class loader instance. the class loader.



getInterfaces
public static List getInterfaces(String className)(Code)
Retrieves all interfaces for the given className (including className itself, assuming it's an interface as well).
Parameters:
  className - the root interface className a list containing all interfaces ordered from the root down.



getInterfaces
public static List getInterfaces(Class clazz)(Code)
Retrieves all interfaces for the given clazz (including clazz itself, assuming it's an interface as well).
Parameters:
  clazz - the root interface class a list containing all interfaces ordered from the root down.



getInterfacesReversed
public static Class[] getInterfacesReversed(String className)(Code)
Gets the interfaces for the given className in reverse order.
Parameters:
  className - the name of the class for which to retrieve the interfaces the array containing the reversed interfaces.



getPrimitiveClass
protected static Class getPrimitiveClass(String name, ClassLoader loader)(Code)

Returns the type class name for a Java primitive.


Parameters:
  name - a String with the name of the type
Parameters:
  loader - the loader to use. a String with the name of the correspondingjava.lang wrapper class if name is a Javaprimitive type; false if not



getStaticFieldValues
public static Collection getStaticFieldValues(Class clazz, Class type) throws IllegalAccessException(Code)
Returns a collection of all static fields values for the given clazz and type of field.
Parameters:
  clazz - the Class from which to retrieve the static fields
Parameters:
  type - the type of static fields to retrieve, if null all are retrieved Collection the collection of static field values.



isClassOfTypePresent
public static boolean isClassOfTypePresent(URL directoryUris, Class type)(Code)
Indicates whether or not a class of the given type is present in one of the given directoryUris.
Parameters:
  directoryUris - the URIs to search, ie. directories or archives.
Parameters:
  type - the type to check. true/false.



isPrimitiveType
protected static boolean isPrimitiveType(String name)(Code)

Checks if a given type name is a Java primitive type.


Parameters:
  name - a String with the name of the type true if name is a Java primitive type; false if not



loadClass
public static Class loadClass(String className)(Code)
Loads and returns the class having the className. Will load but normal classes and the classes representing primatives.
Parameters:
  className - the name of the class to load. Class the loaded class



newInstance
public static Object newInstance(String className)(Code)
Creates a new instance of the class having the given className.
Parameters:
  className - the name of the class to instantiate. Object the new instance



newInstance
public static Object newInstance(Class type)(Code)
Creates a new instance of the class given the type.
Parameters:
  type - the type from which to instantiate the new instance. Object the new instance



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