Package com.inet.problemfinder.rules
Class AbstractRuleElement
- java.lang.Object
-
- com.inet.problemfinder.rules.AbstractRuleElement
-
- All Implemented Interfaces:
ProblemFinderRule
public abstract class AbstractRuleElement extends java.lang.Object implements ProblemFinderRule
ThisProblemFinderRule
is for checking ReportElement
s
-
-
Constructor Summary
Constructors Constructor Description AbstractRuleElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ProblemFinderWarning
check(Engine engine, Element element)
This Method check the given Element if there are a certain error/problem and returns theProblemFinderWarning
ornull
.java.util.List<ProblemFinderWarning>
findErrors(Engine engine)
Runs this rule and checks the given Engine for Problems-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inet.problemfinder.rules.ProblemFinderRule
findErrors, getRuleLabel
-
-
-
-
Method Detail
-
findErrors
public java.util.List<ProblemFinderWarning> findErrors(Engine engine)
Runs this rule and checks the given Engine for Problems- Specified by:
findErrors
in interfaceProblemFinderRule
- Parameters:
engine
- TheEngine
to check.- Returns:
- A list of found problems, can be empty or
null
if the Check is Canceled.
-
check
protected abstract ProblemFinderWarning check(Engine engine, Element element)
This Method check the given Element if there are a certain error/problem and returns theProblemFinderWarning
ornull
.- Parameters:
engine
- is the Engine to checkelement
- the givenElement
to check- Returns:
- a ProblemFinderWarning including Actions for AutoFix the Problem, if it is possible.
null
if there is no Problem found - Since:
- i-net Clear Reports 12.0
-
-