Finished printing Analysis Results. Also, added getPriority() to Rule and AbstractRule.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1331 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Don Leckie
2003-01-06 22:50:44 +00:00
parent f99fb2800c
commit e616db321e
2 changed files with 13 additions and 0 deletions

View File

@ -161,6 +161,18 @@ public abstract class AbstractRule
return m_priority;
}
/**
*********************************************************************************
*
* Returns the rule's priority name that is used for including the rule in reports and analysis.
*
* @return A member of PRIORITIES.
*/
public String getPriorityName()
{
return PRIORITIES[getPriority() - 1];
}
/**
*********************************************************************************
*

View File

@ -25,5 +25,6 @@ public interface Rule {
public boolean include();
public void setInclude(boolean include);
public int getPriority();
public String getPriorityName();
public void setPriority(int priority);
}