Package net.sourceforge.pmd.test.schema
Class RuleTestDescriptor
- java.lang.Object
-
- net.sourceforge.pmd.test.schema.RuleTestDescriptor
-
public class RuleTestDescriptor extends Object
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description RuleTestDescriptor(int index, Rule rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
String
getDescription()
List<Integer>
getExpectedLineNumbers()
List<String>
getExpectedMessages()
int
getExpectedProblems()
int
getIndex()
LanguageVersion
getLanguageVersion()
int
getLineNumber()
Properties
getProperties()
Rule
getRule()
boolean
isDisabled()
boolean
isFocused()
void
recordExpectedViolations(int expectedProblems, List<Integer> expectedLineNumbers, List<String> expectedMessages)
void
setCode(String code)
void
setDescription(String description)
void
setDisabled(boolean disabled)
void
setFocused(boolean focused)
void
setLanguageVersion(LanguageVersion languageVersion)
void
setLineNumber(int lineNumber)
-
-
-
Constructor Detail
-
RuleTestDescriptor
public RuleTestDescriptor(int index, Rule rule)
-
-
Method Detail
-
getRule
public Rule getRule()
-
getProperties
public Properties getProperties()
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getLanguageVersion
public LanguageVersion getLanguageVersion()
-
setLanguageVersion
public void setLanguageVersion(LanguageVersion languageVersion)
-
getCode
public String getCode()
-
setCode
public void setCode(String code)
-
recordExpectedViolations
public void recordExpectedViolations(int expectedProblems, List<Integer> expectedLineNumbers, List<String> expectedMessages)
-
getExpectedProblems
public int getExpectedProblems()
-
getIndex
public int getIndex()
-
isFocused
public boolean isFocused()
-
setFocused
public void setFocused(boolean focused)
-
getLineNumber
public int getLineNumber()
-
setLineNumber
public void setLineNumber(int lineNumber)
-
-