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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ProblemFinderWarningHere 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 Problemsintreturns 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, waitMethods 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:
findErrorsin interfaceProblemFinderRule- Parameters:
engine- TheEngineto check.- Returns:
- A list of found problems, can be empty or
nullif 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
nullif 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:
-