Java Doc for ProjectXMLManager.java in  » IDE-Netbeans » api » org » netbeans » modules » apisupport » project » 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 » api » org.netbeans.modules.apisupport.project 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.apisupport.project.ProjectXMLManager

ProjectXMLManager
final public class ProjectXMLManager (Code)
Convenience class for managing project's project.xml file. You should explicitly enclose a complete operation within write access to prevent race conditions. Use ProjectManager.saveProject to apply changes physically.



Constructor Summary
public  ProjectXMLManager(NbModuleProject project)
     Creates a new instance of ProjectXMLManager .

Method Summary
public  voidaddDependencies(Set<ModuleDependency> toAdd)
     Adds given modules as module-dependencies for the project.
public  voidaddDependency(ModuleDependency md)
     Adds given dependency.
public  voidaddTestDependency(String testType, TestModuleDependency newTestDep)
     Adds new test dependency to project.xml.
static  voidcreateModuleDependencyElement(Element moduleDependencies, ModuleDependency md, Element nextSibling)
     Package-private for unit tests only.
public  voideditDependency(ModuleDependency origDep, ModuleDependency newDep)
    
public static  String[]findFriends(Element confData)
     Utility method for finding friend.
static  ElementfindModuleDependencies(Element parentEl)
     Package-private for unit tests only.
public static  ManifestManager.PackageExport[]findPublicPackages(Element confData)
     Utility method for finding public packages.
static  voidgenerateEmptyModuleTemplate(FileObject projectXml, String cnb, NbModuleType moduleType)
     Generates a basic project.xml templates into the given projectXml for standalone or module in suite module.
public static  voidgenerateEmptySuiteTemplate(FileObject projectXml, String name)
     Generates a basic project.xml templates into the given projectXml for Suite.
static  voidgenerateLibraryModuleTemplate(FileObject projectXml, String cnb, NbModuleType moduleType, Set publicPackages, Map extensions)
     Create a library wrapper project.xml.
public  String[]getBinaryOrigins()
     Returns paths of all libraries bundled within a project this manager manage.
public  StringgetCodeNameBase()
     Returns code-name-base.
public  SortedSet<ModuleDependency>getDirectDependencies()
     Returns direct module dependencies using default module's platform.
public  SortedSet<ModuleDependency>getDirectDependencies(NbPlatform customPlaf)
     Returns sorted direct module dependencies using ModuleDependency.CNB_COMPARATOR allowing to pass a custom platform. Since no two modules with the same code name base may be set as a dependency.
public  String[]getFriends()
     Returns all friends or null if there are none.
public static  ProjectXMLManagergetInstance(File projectDir)
     Utility mehtod for getting the ProjectXMLManager instance associated with a project in the given directory.
public  ManifestManager.PackageExport[]getPublicPackages()
     Returns an array of ManifestManager.PackageExport s of all exposed public packages.
public  Map<String, Set<TestModuleDependency>>getTestDependencies(ModuleList ml)
     Gives a map from test type (e.g.
public  voidremoveClassPathExtensions()
    
public  voidremoveDependencies(Collection<ModuleDependency> depsToDelete)
     Use this for removing more than one dependencies.
public  voidremoveDependenciesByCNB(Collection<String> cnbsToDelete)
     Use this for removing more than one dependencies.
public  voidremoveDependency(String cnbToRemove)
     Remove given dependency from the configuration data.
public  booleanremoveTestDependency(String testType, String cnbToRemove)
     Removes test dependency under type testType, indentified by cnbToRemove.
public  voidreplaceClassPathExtensions(Map newValues)
     Replace existing classpath extensions with new values.
public  voidreplaceDependencies(Set<ModuleDependency> newDeps)
     Replaces all original dependencies with the given newDeps.
public  voidreplaceFriends(String[] friends, String[] packagesToExpose)
     Replaces all original friends with the given friends with packagesToExpose as exposed packages to those friends.
public  voidreplacePublicPackages(String[] newPackages)
     Replaces all original public packages with the given newPackages.
public  voidsetModuleType(NbModuleType moduleType)
    


Constructor Detail
ProjectXMLManager
public ProjectXMLManager(NbModuleProject project)(Code)
Creates a new instance of ProjectXMLManager .




Method Detail
addDependencies
public void addDependencies(Set<ModuleDependency> toAdd) throws IOException(Code)
Adds given modules as module-dependencies for the project.



addDependency
public void addDependency(ModuleDependency md) throws IOException(Code)
Adds given dependency.



addTestDependency
public void addTestDependency(String testType, TestModuleDependency newTestDep) throws IOException(Code)
Adds new test dependency to project.xml. Currently only two test types are supported - UNIT and QA_FUNCTIONAL. Test dependencies under test types are sorted by CNB.



createModuleDependencyElement
static void createModuleDependencyElement(Element moduleDependencies, ModuleDependency md, Element nextSibling)(Code)
Package-private for unit tests only.



editDependency
public void editDependency(ModuleDependency origDep, ModuleDependency newDep)(Code)



findFriends
public static String[] findFriends(Element confData)(Code)
Utility method for finding friend.



findModuleDependencies
static Element findModuleDependencies(Element parentEl)(Code)
Package-private for unit tests only.



findPublicPackages
public static ManifestManager.PackageExport[] findPublicPackages(Element confData)(Code)
Utility method for finding public packages. Method considers both package and subpackages elements with the recursivity flag set appropriately for returned entries. array of ManifestManager.PackageExport. May be empty butnot null.



generateEmptyModuleTemplate
static void generateEmptyModuleTemplate(FileObject projectXml, String cnb, NbModuleType moduleType) throws IOException(Code)
Generates a basic project.xml templates into the given projectXml for standalone or module in suite module.



generateEmptySuiteTemplate
public static void generateEmptySuiteTemplate(FileObject projectXml, String name) throws IOException(Code)
Generates a basic project.xml templates into the given projectXml for Suite.



generateLibraryModuleTemplate
static void generateLibraryModuleTemplate(FileObject projectXml, String cnb, NbModuleType moduleType, Set publicPackages, Map extensions) throws IOException(Code)
Create a library wrapper project.xml.
Parameters:
  publicPackages - set of Strings representing the packages
Parameters:
  extensions - <key=runtime path(String), value=binary path (String)>



getBinaryOrigins
public String[] getBinaryOrigins()(Code)
Returns paths of all libraries bundled within a project this manager manage. So the result should be an array of Strings each representing a relative path to the project's external library (jar/zip). an array of strings (may be empty)



getCodeNameBase
public String getCodeNameBase()(Code)
Returns code-name-base.



getDirectDependencies
public SortedSet<ModuleDependency> getDirectDependencies() throws IOException(Code)
Returns direct module dependencies using default module's platform. See ProjectXMLManager.getDirectDependencies(NbPlatform) for more details to which this method delegates.



getDirectDependencies
public SortedSet<ModuleDependency> getDirectDependencies(NbPlatform customPlaf) throws IOException(Code)
Returns sorted direct module dependencies using ModuleDependency.CNB_COMPARATOR allowing to pass a custom platform. Since no two modules with the same code name base may be set as a dependency. Also this is ordering used in the project.xml.



getFriends
public String[] getFriends()(Code)
Returns all friends or null if there are none.



getInstance
public static ProjectXMLManager getInstance(File projectDir) throws IOException(Code)
Utility mehtod for getting the ProjectXMLManager instance associated with a project in the given directory.
throws:
  IOException - if the project under a given projectDirwas recognized but could not be loaded (see ProjectManager.findProject).



getPublicPackages
public ManifestManager.PackageExport[] getPublicPackages()(Code)
Returns an array of ManifestManager.PackageExport s of all exposed public packages. Method considers both package and subpackages elements with the recursivity flag set appropriately for returned entries. array of ManifestManager.PackageExport. May be empty butnot null.



getTestDependencies
public Map<String, Set<TestModuleDependency>> getTestDependencies(ModuleList ml)(Code)
Gives a map from test type (e.g. unit or qa-functional) to the set of TestModuleDependency dependencies belonging to it.



removeClassPathExtensions
public void removeClassPathExtensions()(Code)



removeDependencies
public void removeDependencies(Collection<ModuleDependency> depsToDelete)(Code)
Use this for removing more than one dependencies. It's faster then iterating and using removeDependency for every entry.



removeDependenciesByCNB
public void removeDependenciesByCNB(Collection<String> cnbsToDelete)(Code)
Use this for removing more than one dependencies. It's faster then iterating and using removeDependency for every entry.



removeDependency
public void removeDependency(String cnbToRemove)(Code)
Remove given dependency from the configuration data.



removeTestDependency
public boolean removeTestDependency(String testType, String cnbToRemove)(Code)
Removes test dependency under type testType, indentified by cnbToRemove. Does not remove whole 610test type even if removed test dependency was the last one.



replaceClassPathExtensions
public void replaceClassPathExtensions(Map newValues)(Code)
Replace existing classpath extensions with new values.
Parameters:
  newValues - <key=runtime-path(String), value=binary-path(String)>



replaceDependencies
public void replaceDependencies(Set<ModuleDependency> newDeps)(Code)
Replaces all original dependencies with the given newDeps.



replaceFriends
public void replaceFriends(String[] friends, String[] packagesToExpose)(Code)
Replaces all original friends with the given friends with packagesToExpose as exposed packages to those friends. Also removes public packages if there are any since those two are mutually exclusive.



replacePublicPackages
public void replacePublicPackages(String[] newPackages)(Code)
Replaces all original public packages with the given newPackages. Also removes friend packages if there are any since those two mutually exclusive.



setModuleType
public void setModuleType(NbModuleType moduleType)(Code)



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.