|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object extended by net.sourceforge.pmd.AbstractDelegateRule extended by net.sourceforge.pmd.RuleReference
public class RuleReference
This class represents a Rule which is a reference to Rule defined in another RuleSet. All details of the Rule are delegated to the underlying referenced Rule, but those operations which modify overridden aspects of the rule are explicitly tracked. Modification operations which set a value to the current underlying value do not override.
Field Summary |
---|
Fields inherited from interface net.sourceforge.pmd.Rule |
---|
LOWEST_PRIORITY, PRIORITIES |
Constructor Summary | |
---|---|
RuleReference()
|
Method Summary | |
---|---|
void |
addExample(java.lang.String example)
Add a single example for this Rule. |
void |
addProperties(java.util.Properties properties)
Add a set of properties to this Rule. |
void |
addProperty(java.lang.String name,
java.lang.String property)
Add a specific property to this Rule. |
java.lang.String |
getOverriddenDescription()
|
java.util.List<java.lang.String> |
getOverriddenExamples()
|
java.lang.String |
getOverriddenExternalInfoUrl()
|
java.lang.String |
getOverriddenMessage()
|
java.lang.String |
getOverriddenName()
|
java.lang.Integer |
getOverriddenPriority()
|
java.util.Properties |
getOverriddenProperties()
|
RuleSetReference |
getRuleSetReference()
|
void |
setDescription(java.lang.String description)
Set the description of this Rule. |
void |
setExternalInfoUrl(java.lang.String externalInfoUrl)
Set a URL for external information about this Rule. |
void |
setMessage(java.lang.String message)
Set the message to show when this Rule identifies a violation. |
void |
setName(java.lang.String name)
Set the name of this Rule. |
void |
setPriority(int priority)
Set the priority of this Rule. |
void |
setRuleSetReference(RuleSetReference ruleSetReference)
|
Methods inherited from class net.sourceforge.pmd.AbstractDelegateRule |
---|
addRuleChainVisit, apply, end, getBooleanProperty, getDescription, getDoubleProperty, getExample, getExamples, getExternalInfoUrl, getIntProperty, getMessage, getName, getPriority, getPriorityName, getProperties, getRule, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, getStringProperty, hasProperty, include, propertyDescriptorFor, setInclude, setRule, setRuleClass, setRuleSetName, setSince, setUsesDFA, setUsesTypeResolution, start, usesDFA, usesRuleChain, usesTypeResolution |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleReference()
Method Detail |
---|
public java.lang.String getOverriddenName()
public void setName(java.lang.String name)
Rule
setName
in interface Rule
setName
in class AbstractDelegateRule
public java.util.Properties getOverriddenProperties()
public void addProperty(java.lang.String name, java.lang.String property)
Rule
addProperty
in interface Rule
addProperty
in class AbstractDelegateRule
public void addProperties(java.util.Properties properties)
Rule
addProperties
in interface Rule
addProperties
in class AbstractDelegateRule
public java.lang.String getOverriddenMessage()
public void setMessage(java.lang.String message)
Rule
setMessage
in interface Rule
setMessage
in class AbstractDelegateRule
public java.lang.String getOverriddenDescription()
public void setDescription(java.lang.String description)
Rule
setDescription
in interface Rule
setDescription
in class AbstractDelegateRule
public java.util.List<java.lang.String> getOverriddenExamples()
public void addExample(java.lang.String example)
Rule
addExample
in interface Rule
addExample
in class AbstractDelegateRule
public java.lang.String getOverriddenExternalInfoUrl()
public void setExternalInfoUrl(java.lang.String externalInfoUrl)
Rule
setExternalInfoUrl
in interface Rule
setExternalInfoUrl
in class AbstractDelegateRule
public java.lang.Integer getOverriddenPriority()
public void setPriority(int priority)
Rule
setPriority
in interface Rule
setPriority
in class AbstractDelegateRule
public RuleSetReference getRuleSetReference()
public void setRuleSetReference(RuleSetReference ruleSetReference)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |