Package com.inet.problemfinder.rules
Class AbstractRuleField
java.lang.Object
com.inet.problemfinder.rules.AbstractRuleField
- All Implemented Interfaces:
ProblemFinderRule
Base class for all rules checking certain
By default checks every type of field, you should override
Fields
.By default checks every type of field, you should override
getFieldType()
to limit check to certain fields.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ProblemFinderWarning
Here the concrete check is made.
This is called for each found field that matches the types returned bygetFieldType()
.findErrors
(Engine engine) Runs this rule and checks the given Engine for Problemsint
returns the Field type which has to checked, -1 listen to all Field typesMethods 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
-
Constructor Details
-
AbstractRuleField
public AbstractRuleField()
-
-
Method Details
-
findErrors
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
Here the concrete check is made.
This is called for each found field that matches the types returned bygetFieldType()
.- Parameters:
engine
- is the Engine to checkfield
- the field to check- Returns:
- the ProblemFinderWarning of the found error or
null
if there is no warning - Since:
- i-net Clear Reports 12.0
- See Also:
-
getFieldType
public int getFieldType()returns the Field type which has to checked, -1 listen to all Field types- Returns:
- the int-type value of the Field
- Since:
- i-net Clear Reports 12.0
- See Also:
-