Java Doc for PMDDirectory.java in  » UML » jrefactory » org » acm » seguin » pmd » 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 » jrefactory » org.acm.seguin.pmd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.acm.seguin.pmd.PMDDirectory

PMDDirectory
public class PMDDirectory (Code)
Defines and provides access to PMD's directory structure. The user defines the location of the root PMD directory, e.g., /users/userA/PMD. The PMD directory structure provides the following:
  • Organization to simplify PMD's access to files.
  • Eliminates dependence of manually updating the Java classpath.
  • Permits adding and removing rule sets without updating lists.
 The directory structure and contents are the following:
 
 PMD
 pmd.properties
 rulesets
 basic.xml
 design.xml
 import.xml
 com
 myCompany
 pmd
 rules
 myRule01.class
 myRule02.class
 myRule03.class
 net
 sourceforge
 pmd
 rules
 myNewExperimentalRule.class
 
 
The PMD directory is the root directory of all PMD files.

The pmd.properties file contains various information to be defined.

The rulesets directory contains the rule set files and rule class file directories.

A rule set file is a XML file that describes the rule set and its rules. This information is displayed and maintained in the PMD Viewer. The rule class files are called by PMD to perform the analysis.

All rule classes, other than the rule classes in pmd.jar, are stored in directory paths defined by each rule's class name. The Java classpath is appended with the rulesets directory so that the rule class and any supporting class files may be found.

NOTE: The user's home directory will contain a PMD directory with a user.preferences file. An entry in the user's preferences will be the path to the PMD root directory described above.
author:
   Donald A. Leckie
since:
   September 19, 2002
version:
   $Revision: 1.1 $, $Date: 2003/07/29 20:51:58 $





Method Summary
final public static  PMDDirectorygetDirectory()
    
public  RuleSetgetIncludedRules(int lowestPriorityForAnalysis)
     Gets a rule set containing only the rule sets and rules to be included for running the analysis.
public  StringgetPMDDirectoryPath()
    
public  ListgetRegisteredRuleSets()
    
public  RuleSetgetRuleSet(File ruleSetFile)
     Gets the rule set for the given rule set file.
public  RuleSetgetRuleSet(File ruleSetFile, boolean onlyIfIncluded)
     Gets the rule set for the given rule set File.
public  ListgetRuleSets()
    
public  StringgetRuleSetsDirectoryPath()
    
final public static  voidopen(String pathToPMD)
    
public  voidsavePropertiesFile()
    
protected  voidsaveRuleSets(List ruleSetList)
    



Method Detail
getDirectory
final public static PMDDirectory getDirectory()(Code)



getIncludedRules
public RuleSet getIncludedRules(int lowestPriorityForAnalysis) throws PMDException(Code)
Gets a rule set containing only the rule sets and rules to be included for running the analysis. A rule containing only included rules.



getPMDDirectoryPath
public String getPMDDirectoryPath()(Code)



getRegisteredRuleSets
public List getRegisteredRuleSets()(Code)



getRuleSet
public RuleSet getRuleSet(File ruleSetFile) throws PMDException(Code)
Gets the rule set for the given rule set file. All rules in the rule set file are stored in the rule set regardless of their include state.
Parameters:
  ruleSetFile - The file of the desired rule set. A rule set containing all of its rules.
throws:
  PMDException -



getRuleSet
public RuleSet getRuleSet(File ruleSetFile, boolean onlyIfIncluded) throws PMDException(Code)
Gets the rule set for the given rule set File. All rules in the rule set file are stored in the rule set according of their include state and the onlyIfIncluded flag.
Parameters:
  ruleSetFile - The file of the desired rule set. A rule set containing all of its rules.
throws:
  PMDException -



getRuleSets
public List getRuleSets() throws PMDException(Code)



getRuleSetsDirectoryPath
public String getRuleSetsDirectoryPath()(Code)



open
final public static void open(String pathToPMD) throws PMDException(Code)

Parameters:
  pathToPMD - The full path to the PMD directory, but excludes the PMD directory.



savePropertiesFile
public void savePropertiesFile() throws PMDException(Code)



saveRuleSets
protected void saveRuleSets(List ruleSetList)(Code)

Parameters:
  ruleSetList -



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.