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


java.lang.Object
   org.netbeans.modules.visualweb.project.jsf.api.JsfProjectUtils

JsfProjectUtils
public class JsfProjectUtils (Code)

author:
   Po-Ting Wu


Field Summary
final public static  StringJ2EE_1_3
    
final public static  StringJ2EE_1_4
    
final public static  StringJAVA_EE_5
    
final public static  StringPATH_IN_WAR_LIB
    
final public static  StringSUN_WEB_XML_PATH
    


Method Summary
public static  voidaddJsfFrameworkChangeListener(Project project, PropertyChangeListener listener)
    
public static  booleanaddLibraryReferences(Project project, Library[] libraries)
    
public static  booleanaddLibraryReferences(Project project, Library[] libraries, String type)
     Add an array of library references to a project, qualified by the type parameter.
public static  voidaddLocalizedRoots(Project project, String[] jarName)
    
public static  voidaddLocalizedRoots(Project project, String[] jarName, String type)
    
public static  voidaddLocalizedRoots(Project project, URL[] roots, String type)
    
public static  voidaddLocalizedTheme(Project project, String themeName)
    
public static  voidaddProjectPropertyListener(Project project, PropertyChangeListener listener)
    
public static  StringaddResource(FileObject webForm, URL resourceURL, boolean copy)
     Add a new resource to the project
Parameters:
  webForm - the webform object that will be referencing this resource.Used to determine the relative path name to the resource
Parameters:
  resourceURL - resource to be added
Parameters:
  copy - if true, resource will be copied to the project a source path for the resource in the project.
public static  booleanaddRootReferences(Project project, URL[] rootFiles)
    
public static  booleanaddRootReferences(Project project, URL[] rootFiles, String type)
     Add an root reference to a project qualified by the type parameter.
public static  StringaddWebAppBean(Project project, String beanName, String[] propertyNames, Object[] propertyValues, String keyProperty)
    
public static  LibrarycreateComponentLibrary(String name, String description, String localizingBundle, List<URL> classPaths, List<URL> sources, List<URL> javadocs, List<URL> designtimes)
    
public static  voidcreateFile(FileObject target, String content, String encoding)
    
public static  LibrarycreateJ2SELibrary(String name, String description, String localizingBundle, List<URL> classPaths, List<URL> sources, List<URL> javadocs)
    
public static  voidcreateProjectProperty(Project project, String propName, String value)
    
public static  StringderiveSafeName(String sourceName)
    
public static  booleanfileContains(FileObject fo, String str)
    
public static  StringgetBackwardsKitMesg(boolean addJSF11, boolean addJAXRPC, boolean addRowset)
    
public static  StringgetBasePathForJava(FileObject javaFile)
    
public static  StringgetBasePathForJsp(FileObject jspFile)
    
public static  StringgetDefaultEncoding(Project project)
    
public static  StringgetDefaultLocale(Project project)
    
public static  FileObjectgetDocumentRoot(Project project)
     Convenience method to obtain the document root folder.
public static  StringgetFacesURLPattern(WebApp ddRoot)
     Get the Faces Servlet URL pattern.
public static  StringgetJ2eePlatformVersion(Project project)
     J2EE platform version - one of the constants JsfProjectUtils.J2EE_13_LEVEL , JsfProjectUtils.J2EE_14_LEVEL .
public static  JFileChoosergetJFileChooser()
     This does a special instantiation of JFileChooser to workaround floppy access bug 5037322.
public static  JFileChoosergetJFileChooser(String currentDirectoryPath)
    
public static  JFileChoosergetJFileChooser(File currentDirectory)
    
public static  FileObjectgetJavaFolderForJsp(FileObject jspFileObject)
     Gets corresponding java folder for specified jsp file object if exists.
public static  FileObjectgetJavaForJsp(FileObject jspFileObject)
     Gets corresponding java file object for specified jsp file object if exists.
public static  FileObjectgetJspFolderForJava(FileObject javaFileObject)
     Gets corresponding jsp folder for specified java file object if exists.
public static  FileObjectgetJspForJava(FileObject javaFileObject)
     Gets corresponding jsp file object for specified java file object if exists.
public static  FileObjectgetNavigationFile(Project project)
    
public static  FileObjectgetPageBeanRoot(Project project)
    
public static  JsfPortletSupportgetPortletSupport(Project project)
    
public static  FileObjectgetProjectLibraryDirectory(Project project)
     Returns a directory under the project root where library jar files can be added as project-private resources
Parameters:
  project - Target project FileObject of the library directory.
public static  LibraryManagergetProjectLibraryManager(Project project)
    
public static  StringgetProjectProperty(Project project, String propName)
    
public static  StringgetProjectVersion(Project project)
    
public static  FileObjectgetResourcesDirectory(Project project)
     Returns a directory under the project root where resource files can be added
Parameters:
  project - Target project FileObject of the resources directory.
public static  StringgetSourceEncoding(Project project)
    
public static  StringgetSourceLevel(Project project)
    
public static  FileObjectgetSourceRoot(Project project)
     Convenience method to obtain the source root folder.
public static  FileObjectgetWebInf(Project project)
     Convenience method to obtain the WEB-INF folder.
public static  WebModulegetWebModule(Project project)
    
public static  booleanhasLibraryReference(Project project, Library library)
    
public static  booleanhasLibraryReference(Project project, Library library, String type)
     Check if a project has a library reference to the named library qualified by the type parameter.
public static  booleanhasRootReference(Project project, URL rootFile)
    
public static  booleanhasRootReference(Project project, URL rootFile, String type)
     Check if a project has an root reference to the named root qualified by the type parameter.
public static  voidimportFile(Project project, File file)
    
public static  booleanisDesigntimeLib(String name)
    
public static  booleanisJavaEE5Project(Project project)
    
public static  booleanisJsfFramework(WebFrameworkProvider framework)
    
public static  booleanisJsfProject(Project project)
    
public static  BooleanisJsfProjectDir(FileObject projDir)
    
public static  booleanisJsfProjectFile(FileObject fo)
     Check for Creator project file.
public static  booleanisStartPage(FileObject webPage)
    
public static  booleanisValidJavaFileName(String name)
     Reports whether the given name is a valid Java file name.
public static  booleanisValidJavaPackageName(String pkgName)
     Reports whether the given name is a valid Java package name.
public static  booleanisWebProject(Project project)
    
public static  voidputProjectProperty(Project project, String propName, String value)
    
public static  StringreadResource(InputStream is, String encoding)
    
public static  voidremoveJsfFrameworkChangeListener(Project project, PropertyChangeListener listener)
    
public static  voidremoveLibrary(String name)
    
public static  booleanremoveLibraryReferences(Project project, Library[] libraries)
    
public static  booleanremoveLibraryReferences(Project project, Library[] libraries, String type)
     Remove an array of library references from a project, qualified by the type parameter.
public static  voidremoveLocalizedTheme(Project project, String themeName)
    
public static  voidremoveProjectPropertyListener(Project project, PropertyChangeListener listener)
    
public static  booleanremoveRootReferences(Project project, URL[] rootFiles)
    
public static  booleanremoveRootReferences(Project project, URL[] rootFiles, String type)
     Remove an array of root references from a project qualified by the type parameter.
public static  voidremoveWelcomeFile(WebApp ddRoot, String facesMapping, String pageName)
    
public static  voidselectResourceInWindow(FileObject resourceFO)
    
public static  StringsetDataSourceReference(Project project, String resourceName)
    
public static  StringsetEjbReference(Project project, RequestedEjbResource ejbResource)
    
public static  voidsetJsfProjectDir(FileObject projDir, Boolean set)
    
public static  voidsetJsfProjectDir(ArrayList<FileObject> projDirs, Boolean set)
    
public static  voidsetProjectVersion(Project project, String version)
    
public static  StringsetStartPage(FileObject webPage)
     Sets the start page for the application
Parameters:
  startPage - the path to the JSP or HTML file relative to the document root.
public static  StringsetStartPage(Project project, String newStartPage)
     Sets the start page for the application We need to the ability to specify the actual value for the new start page, since refactoring does not guarantee the order in which refactoring elements are processed.
public static  voidsetWelcomeFile(WebModule webModule, WebApp ddRoot, String facesMapping, String pageName)
    
public static  booleansupportProjectProperty(Project project)
    
public static  voidupdateLocalizedRoots(Project project)
    
public static  voidupdateXml(FileObject prjLoc, String path, String nameSpace, String key, String value)
    

Field Detail
J2EE_1_3
final public static String J2EE_1_3(Code)



J2EE_1_4
final public static String J2EE_1_4(Code)



JAVA_EE_5
final public static String JAVA_EE_5(Code)



PATH_IN_WAR_LIB
final public static String PATH_IN_WAR_LIB(Code)



SUN_WEB_XML_PATH
final public static String SUN_WEB_XML_PATH(Code)





Method Detail
addJsfFrameworkChangeListener
public static void addJsfFrameworkChangeListener(Project project, PropertyChangeListener listener)(Code)



addLibraryReferences
public static boolean addLibraryReferences(Project project, Library[] libraries) throws IOException(Code)
Add an array of library references to a project, qualified for both the design-time classpath or deployed with the application
Parameters:
  project - Project to which the library is to be added
Parameters:
  library - Library object from the LibraryManager registry Returns true if the library reference was successfully added
throws:
  an - IOException if there was a problem adding the reference



addLibraryReferences
public static boolean addLibraryReferences(Project project, Library[] libraries, String type) throws IOException(Code)
Add an array of library references to a project, qualified by the type parameter.
Parameters:
  project - Project to which the library is to be added
Parameters:
  library - Library object from the LibraryManager registry
Parameters:
  type - Determines whether the library is to be added to the design-time classpath or deployedwith the application Returns true if the library reference was successfully added
throws:
  an - IOException if there was a problem adding the reference



addLocalizedRoots
public static void addLocalizedRoots(Project project, String[] jarName) throws IOException(Code)



addLocalizedRoots
public static void addLocalizedRoots(Project project, String[] jarName, String type) throws IOException(Code)



addLocalizedRoots
public static void addLocalizedRoots(Project project, URL[] roots, String type) throws IOException(Code)



addLocalizedTheme
public static void addLocalizedTheme(Project project, String themeName) throws IOException(Code)



addProjectPropertyListener
public static void addProjectPropertyListener(Project project, PropertyChangeListener listener)(Code)



addResource
public static String addResource(FileObject webForm, URL resourceURL, boolean copy) throws IOException(Code)
Add a new resource to the project
Parameters:
  webForm - the webform object that will be referencing this resource.Used to determine the relative path name to the resource
Parameters:
  resourceURL - resource to be added
Parameters:
  copy - if true, resource will be copied to the project a source path for the resource in the project. If copy is true,this will be a relative path name to the resource file. If copyis false, addResource will return resourceURL->toString()
throws:
  IOException - if an error occurs when accessing the URL or copyingthe resource



addRootReferences
public static boolean addRootReferences(Project project, URL[] rootFiles) throws IOException(Code)
Add an root reference to a project qualified for both the design-time classpath or deployed with the application
Parameters:
  project - Project to which the root is to be added
Parameters:
  rootFile - file object of the root Returns true if the root was successfully added
throws:
  an - IOException if there was a problem adding the reference



addRootReferences
public static boolean addRootReferences(Project project, URL[] rootFiles, String type) throws IOException(Code)
Add an root reference to a project qualified by the type parameter.
Parameters:
  project - Project to which the root is to be added
Parameters:
  rootFile - file object of the root
Parameters:
  type - Determines whether the root is to be added to the design-time classpath or deployedwith the application Returns true if the root was successfully added
throws:
  an - IOException if there was a problem adding the reference



addWebAppBean
public static String addWebAppBean(Project project, String beanName, String[] propertyNames, Object[] propertyValues, String keyProperty)(Code)



createComponentLibrary
public static Library createComponentLibrary(String name, String description, String localizingBundle, List<URL> classPaths, List<URL> sources, List<URL> javadocs, List<URL> designtimes) throws IOException(Code)



createFile
public static void createFile(FileObject target, String content, String encoding) throws IOException(Code)



createJ2SELibrary
public static Library createJ2SELibrary(String name, String description, String localizingBundle, List<URL> classPaths, List<URL> sources, List<URL> javadocs) throws IOException(Code)



createProjectProperty
public static void createProjectProperty(Project project, String propName, String value)(Code)



deriveSafeName
public static String deriveSafeName(String sourceName)(Code)
Derive an identifier suitable for a java package name or context path
Parameters:
  sourceName - Original name from which to derive the name An identifier suitable for a java package name or context path



fileContains
public static boolean fileContains(FileObject fo, String str)(Code)



getBackwardsKitMesg
public static String getBackwardsKitMesg(boolean addJSF11, boolean addJAXRPC, boolean addRowset)(Code)



getBasePathForJava
public static String getBasePathForJava(FileObject javaFile)(Code)



getBasePathForJsp
public static String getBasePathForJsp(FileObject jspFile)(Code)



getDefaultEncoding
public static String getDefaultEncoding(Project project)(Code)

Parameters:
  project -



getDefaultLocale
public static String getDefaultLocale(Project project)(Code)

Parameters:
  project -



getDocumentRoot
public static FileObject getDocumentRoot(Project project)(Code)
Convenience method to obtain the document root folder.
Parameters:
  project - the Project object the FileObject of the document root folder



getFacesURLPattern
public static String getFacesURLPattern(WebApp ddRoot)(Code)
Get the Faces Servlet URL pattern.
Parameters:
  ddRoot - the Web Application If successful, returns the URL pattern, null if unsuccessful.



getJ2eePlatformVersion
public static String getJ2eePlatformVersion(Project project)(Code)
J2EE platform version - one of the constants JsfProjectUtils.J2EE_13_LEVEL , JsfProjectUtils.J2EE_14_LEVEL .
Parameters:
  project - J2EE platform version



getJFileChooser
public static JFileChooser getJFileChooser()(Code)
This does a special instantiation of JFileChooser to workaround floppy access bug 5037322. Using privileged code block.



getJFileChooser
public static JFileChooser getJFileChooser(String currentDirectoryPath)(Code)



getJFileChooser
public static JFileChooser getJFileChooser(File currentDirectory)(Code)



getJavaFolderForJsp
public static FileObject getJavaFolderForJsp(FileObject jspFileObject)(Code)
Gets corresponding java folder for specified jsp file object if exists. corresponding java file object or null



getJavaForJsp
public static FileObject getJavaForJsp(FileObject jspFileObject)(Code)
Gets corresponding java file object for specified jsp file object if exists. corresponding java file object or null



getJspFolderForJava
public static FileObject getJspFolderForJava(FileObject javaFileObject)(Code)
Gets corresponding jsp folder for specified java file object if exists. corresponding jsp file object or null



getJspForJava
public static FileObject getJspForJava(FileObject javaFileObject)(Code)
Gets corresponding jsp file object for specified java file object if exists. corresponding jsp file object or null



getNavigationFile
public static FileObject getNavigationFile(Project project)(Code)
Convenience method to obtain the project's navigation file
Parameters:
  project - the Project object the FileObject of the navigtion file



getPageBeanRoot
public static FileObject getPageBeanRoot(Project project)(Code)
Convenience method to obtain the root folder for page beans
Parameters:
  project - the Project object the FileObject of the page bean root folder



getPortletSupport
public static JsfPortletSupport getPortletSupport(Project project)(Code)
Obtain the portlet support helper object from the project
Parameters:
  project - the Project object the portlet support object or null if the project is notcapable of supporting portlets



getProjectLibraryDirectory
public static FileObject getProjectLibraryDirectory(Project project) throws IOException(Code)
Returns a directory under the project root where library jar files can be added as project-private resources
Parameters:
  project - Target project FileObject of the library directory. If it does not exist, it will be created.
throws:
  IOException - if the directory cannot be created



getProjectLibraryManager
public static LibraryManager getProjectLibraryManager(Project project)(Code)



getProjectProperty
public static String getProjectProperty(Project project, String propName)(Code)



getProjectVersion
public static String getProjectVersion(Project project)(Code)



getResourcesDirectory
public static FileObject getResourcesDirectory(Project project) throws IOException(Code)
Returns a directory under the project root where resource files can be added
Parameters:
  project - Target project FileObject of the resources directory. If it does not exist, it will be created.
throws:
  IOException - if the directory cannot be created



getSourceEncoding
public static String getSourceEncoding(Project project)(Code)
Convenience method to obtain the project's source encoding
Parameters:
  project - the Project object string representation of the project's source encoding



getSourceLevel
public static String getSourceLevel(Project project)(Code)



getSourceRoot
public static FileObject getSourceRoot(Project project)(Code)
Convenience method to obtain the source root folder.
Parameters:
  project - the Project object the FileObject of the source root folder



getWebInf
public static FileObject getWebInf(Project project)(Code)
Convenience method to obtain the WEB-INF folder.
Parameters:
  project - the Project object the FileObject of the WEB-INF folder



getWebModule
public static WebModule getWebModule(Project project)(Code)



hasLibraryReference
public static boolean hasLibraryReference(Project project, Library library)(Code)
Check if a project has a library reference to the named library qualified for both the design-time classpath or deployed with the application
Parameters:
  project - Target project
Parameters:
  library - Library object Returns true if the library is already referenced by the project, false otherwise



hasLibraryReference
public static boolean hasLibraryReference(Project project, Library library, String type)(Code)
Check if a project has a library reference to the named library qualified by the type parameter.
Parameters:
  project - Target project
Parameters:
  library - Library object
Parameters:
  type - Determines whether the library is to be referenced from the design-time classpath or deploytime classpath Returns true if the library is already referenced by the project, false otherwise



hasRootReference
public static boolean hasRootReference(Project project, URL rootFile)(Code)
Check if a project has an root reference to the named root qualified for both the design-time classpath or deployed with the application
Parameters:
  project - Target project
Parameters:
  rootFile - file object of the root Returns true if the root is already referenced by the project, false otherwise



hasRootReference
public static boolean hasRootReference(Project project, URL rootFile, String type)(Code)
Check if a project has an root reference to the named root qualified by the type parameter.
Parameters:
  project - Target project
Parameters:
  rootFile - file object of the root
Parameters:
  type - Determines whether the root is to be referenced from the design-time classpath or deploytime classpath Returns true if the root is already referenced by the project, false otherwise



importFile
public static void importFile(Project project, File file)(Code)



isDesigntimeLib
public static boolean isDesigntimeLib(String name)(Code)



isJavaEE5Project
public static boolean isJavaEE5Project(Project project)(Code)



isJsfFramework
public static boolean isJsfFramework(WebFrameworkProvider framework)(Code)



isJsfProject
public static boolean isJsfProject(Project project)(Code)
Check for Creator project
Parameters:
  project - Project to be checked



isJsfProjectDir
public static Boolean isJsfProjectDir(FileObject projDir)(Code)



isJsfProjectFile
public static boolean isJsfProjectFile(FileObject fo)(Code)
Check for Creator project file. Note: For DataLoader only when 'Project' is not available.
Parameters:
  fo - FileObject to be checked



isStartPage
public static boolean isStartPage(FileObject webPage)(Code)
Check for start page
Parameters:
  webPage - JSP file



isValidJavaFileName
public static boolean isValidJavaFileName(String name)(Code)
Reports whether the given name is a valid Java file name.
Parameters:
  name - The Java file name to be checked true iff the name parameter is a valid Java file name



isValidJavaPackageName
public static boolean isValidJavaPackageName(String pkgName)(Code)
Reports whether the given name is a valid Java package name.
Parameters:
  name - The Java package name to be checked true iff the name parameter is a valid Java package name



isWebProject
public static boolean isWebProject(Project project)(Code)



putProjectProperty
public static void putProjectProperty(Project project, String propName, String value)(Code)



readResource
public static String readResource(InputStream is, String encoding) throws IOException(Code)



removeJsfFrameworkChangeListener
public static void removeJsfFrameworkChangeListener(Project project, PropertyChangeListener listener)(Code)



removeLibrary
public static void removeLibrary(String name) throws IOException(Code)



removeLibraryReferences
public static boolean removeLibraryReferences(Project project, Library[] libraries) throws IOException(Code)
Remove an array of library references from a project, qualified for both the design-time classpath or deployed with the application
Parameters:
  project - Project from which the library references are to be removed
Parameters:
  library - Array of Library objects from the LibraryManager registry Returns true if at least one of the library references were successfully removed
throws:
  an - IOException if there was a problem removing the reference



removeLibraryReferences
public static boolean removeLibraryReferences(Project project, Library[] libraries, String type) throws IOException(Code)
Remove an array of library references from a project, qualified by the type parameter.
Parameters:
  project - Project from which the library references are to be removed
Parameters:
  library - Array of Library objects from the LibraryManager registry
Parameters:
  type - Determines whether the library is to be removed from the design-time classpath or deployedwith the application Returns true if at least one of the library references were successfully removed
throws:
  an - IOException if there was a problem removing the reference



removeLocalizedTheme
public static void removeLocalizedTheme(Project project, String themeName) throws IOException(Code)



removeProjectPropertyListener
public static void removeProjectPropertyListener(Project project, PropertyChangeListener listener)(Code)



removeRootReferences
public static boolean removeRootReferences(Project project, URL[] rootFiles) throws IOException(Code)
Remove an array of root references from a project qualified for both the design-time classpath or deployed with the application
Parameters:
  project - Project from which the root references is to be removed
Parameters:
  rootFile - file object of the root Returns true if at least one of the roots was successfully removed
throws:
  an - IOException if there was a problem removing the references



removeRootReferences
public static boolean removeRootReferences(Project project, URL[] rootFiles, String type) throws IOException(Code)
Remove an array of root references from a project qualified by the type parameter.
Parameters:
  project - Project from which the root references is to be removed
Parameters:
  rootFile - file object of the root
Parameters:
  type - Determines whether the root is to be removed from the design-time classpath or deploytime classpath Returns true if at least one of the roots was successfully removed
throws:
  an - IOException if there was a problem removing the references



removeWelcomeFile
public static void removeWelcomeFile(WebApp ddRoot, String facesMapping, String pageName)(Code)



selectResourceInWindow
public static void selectResourceInWindow(FileObject resourceFO)(Code)



setDataSourceReference
public static String setDataSourceReference(Project project, String resourceName)(Code)



setEjbReference
public static String setEjbReference(Project project, RequestedEjbResource ejbResource)(Code)



setJsfProjectDir
public static void setJsfProjectDir(FileObject projDir, Boolean set)(Code)



setJsfProjectDir
public static void setJsfProjectDir(ArrayList<FileObject> projDirs, Boolean set)(Code)



setProjectVersion
public static void setProjectVersion(Project project, String version)(Code)



setStartPage
public static String setStartPage(FileObject webPage)(Code)
Sets the start page for the application
Parameters:
  startPage - the path to the JSP or HTML file relative to the document root. If successful, returns the path of the new start page relative to the document root, null if unsuccessful.



setStartPage
public static String setStartPage(Project project, String newStartPage)(Code)
Sets the start page for the application We need to the ability to specify the actual value for the new start page, since refactoring does not guarantee the order in which refactoring elements are processed. Since the rename of the file object and the setting of the start page are separate refactoring elements, the setting of the start page can occur prior to the rename of the file object. We use the webPage file object to identify the appro
Parameters:
  project - the project to set the start page on
Parameters:
  newStartPage - the web folder relative path to the new start page If successful, returns the path of the new start page relative to the document root, null if unsuccessful.



setWelcomeFile
public static void setWelcomeFile(WebModule webModule, WebApp ddRoot, String facesMapping, String pageName)(Code)



supportProjectProperty
public static boolean supportProjectProperty(Project project)(Code)



updateLocalizedRoots
public static void updateLocalizedRoots(Project project)(Code)



updateXml
public static void updateXml(FileObject prjLoc, String path, String nameSpace, String key, String value) throws IOException(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.