Java Doc for Util.java in  » IDE-Netbeans » library » org » netbeans » 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 » IDE Netbeans » library » org.netbeans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.Util

All known Subclasses:   org.netbeans.ProxyClassLoader,
Util
abstract public class Util (Code)
Static utility methods for use within this package.
author:
   Jesse Glick

Inner Class :final static class FileWithSuffix
Inner Class :public interface PackageAccessibleClassLoader
Inner Class :public interface ModuleProvider
Inner Class :final static class ModuleLookup extends Lookup

Field Summary
final public static  Loggererr
     Log everything happening in the module system.


Method Summary
static  booleancheckJavaDependency(Dependency dep)
     Check whether a simple dependency is met.
static  booleancheckPackageDependency(Dependency dep, ClassLoader cl)
     Check whether a package dependency is met.
public static  StringcreatePackageName(String name)
     Convert a class file name to a resource name suitable for Beans.instantiate.
static  List<File>findLocaleVariantsOf(File f)
     Find existing locale variants of f, in search order.
static  List<FileWithSuffix>findLocaleVariantsWithSuffixesOf(File f)
     Find existing locale variants of f, in search order.
public static  StringfindLocalizedMessage(Throwable t, boolean detailOK)
     Find the most human-presentable message present in an exception.
public static synchronized  String[]getLocalizingSuffixesFast()
     Similar to NbBundle.getLocalizingSuffixes but optimized.
public static  SpecificationVersiongetModuleDep(Set<Dependency> dependencies, String cnb)
     Get API module dependency, if any, for a module.
static  FilenameFilterjarFilter()
     Get a filter for JAR files.
static  FilemakeTempJar(File moduleFile)
     Make a temporary copy of a JAR file.
public static  Map<Module, List<Module>>moduleDependencies(Collection<Module> modules, Map<String, Module> modulesByName, Map<String, Set<Module>> _providersOf)
     Enumerate (direct) interdependencies among a set of modules.
static  Set<Module>moduleInterdependencies(Module m, boolean reverse, boolean transitive, Set<Module> modules, Map<String, Module> modulesByName, Map<String, Set<Module>> providersOf)
     Get dependencies forward or backwards starting from one module.
public static  Object[]parseCodeName(String cn)
     Find the code name base and major release version from a code name. Caches these parses.
public static  voidtransitiveClosureModuleDependencies(ModuleManager mgr, Set<Module> modules)
     Transitively fill out a set of modules with all of its module dependencies.

Field Detail
err
final public static Logger err(Code)
Log everything happening in the module system.





Method Detail
checkJavaDependency
static boolean checkJavaDependency(Dependency dep) throws IllegalArgumentException(Code)
Check whether a simple dependency is met. Only applicable to Java dependencies.



checkPackageDependency
static boolean checkPackageDependency(Dependency dep, ClassLoader cl) throws IllegalArgumentException(Code)
Check whether a package dependency is met. A classloader must be supplied to check in.



createPackageName
public static String createPackageName(String name) throws IllegalArgumentException(Code)
Convert a class file name to a resource name suitable for Beans.instantiate.
Parameters:
  name - resource name of class file class name without the .class/.ser extension, and using dots as package separator
throws:
  IllegalArgumentException - if the name did not have a valid extension, or originally contained dots outside the extension, etc.
since:
   JST-PENDING: used from NbInstaller



findLocaleVariantsOf
static List<File> findLocaleVariantsOf(File f)(Code)
Find existing locale variants of f, in search order.



findLocaleVariantsWithSuffixesOf
static List<FileWithSuffix> findLocaleVariantsWithSuffixesOf(File f)(Code)
Find existing locale variants of f, in search order.



findLocalizedMessage
public static String findLocalizedMessage(Throwable t, boolean detailOK)(Code)
Find the most human-presentable message present in an exception. At worst, the detail message, but preferably a localized message if different, or the first localized annotation found. If returning the detail message is not OK, returns null instead.
since:
   JST-PENDING: used from NbProblemDisplayer



getLocalizingSuffixesFast
public static synchronized String[] getLocalizingSuffixesFast()(Code)
Similar to NbBundle.getLocalizingSuffixes but optimized.
since:
   JST-PENDING: Called from InstalledFileLocatorImpl



getModuleDep
public static SpecificationVersion getModuleDep(Set<Dependency> dependencies, String cnb)(Code)
Get API module dependency, if any, for a module.
Parameters:
  dependencies - module dependencies
Parameters:
  cnb - code name base of API module a fake spec version (0.x.y if x.y w/ no major release, else r.x.y); or null if no dep
since:
   JST-PENDING: used from NbInstaller



jarFilter
static FilenameFilter jarFilter()(Code)
Get a filter for JAR files.



makeTempJar
static File makeTempJar(File moduleFile) throws IOException(Code)
Make a temporary copy of a JAR file.



moduleDependencies
public static Map<Module, List<Module>> moduleDependencies(Collection<Module> modules, Map<String, Module> modulesByName, Map<String, Set<Module>> _providersOf)(Code)
Enumerate (direct) interdependencies among a set of modules. If used in a topological sort, the result will be a reverse-order list of modules (suitable for disabling; reverse for enabling).
Parameters:
  modules - some modules
Parameters:
  modulesByName - map from module cnbs to modules (may contain unrelated modules)
Parameters:
  providersOf - map from tokens to sets of modules providing them (may mention unrelated modules) a map from modules to lists of modules they depend on
See Also:   Utilities.topologicalSort
See Also:   JST-PENDING needed from tests



moduleInterdependencies
static Set<Module> moduleInterdependencies(Module m, boolean reverse, boolean transitive, Set<Module> modules, Map<String, Module> modulesByName, Map<String, Set<Module>> providersOf)(Code)
Get dependencies forward or backwards starting from one module.
See Also:   Util.moduleDependencies
See Also:   ModuleManager.getModuleInterdependencies



parseCodeName
public static Object[] parseCodeName(String cn) throws NumberFormatException(Code)
Find the code name base and major release version from a code name. Caches these parses. Thread-safe (i.e. OK from read mutex). an array consisting of the code name base (String) followed by the release version (Integer or null)followed by another end-range version (Integer or null)
throws:
  NumberFormatException - if the release version is mangled
since:
   JST-PENDING: used from NbInstaller



transitiveClosureModuleDependencies
public static void transitiveClosureModuleDependencies(ModuleManager mgr, Set<Module> modules)(Code)
Transitively fill out a set of modules with all of its module dependencies. Dependencies on missing modules are silently ignored, but dependencies on present but uninstallable (problematic) modules are included.
Parameters:
  mgr - the manager
Parameters:
  modules - a mutable set of modules
since:
   JST-PENDING: used from NbInstaller



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.