Package org.openl.rules.validation
Class ActivePropertyValidator
- java.lang.Object
-
- org.openl.rules.validation.TablesValidator
-
- org.openl.rules.validation.ActivePropertyValidator
-
- All Implemented Interfaces:
IOpenLValidator
public class ActivePropertyValidator extends TablesValidator
Validator that checks correctness of "active" property. Only one active table allowed. And if active table is absent warning will occur.- Author:
- PUdalau
-
-
Field Summary
Fields Modifier and Type Field Description static StringNO_ACTIVE_TABLE_MESSAGEstatic StringODD_ACTIVE_TABLE_MESSAGE
-
Constructor Summary
Constructors Constructor Description ActivePropertyValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationResultvalidateTables(TableSyntaxNode[] tableSyntaxNodes, IOpenClass openClass)-
Methods inherited from class org.openl.rules.validation.TablesValidator
validate
-
-
-
-
Field Detail
-
NO_ACTIVE_TABLE_MESSAGE
public static final String NO_ACTIVE_TABLE_MESSAGE
- See Also:
- Constant Field Values
-
ODD_ACTIVE_TABLE_MESSAGE
public static final String ODD_ACTIVE_TABLE_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateTables
public ValidationResult validateTables(TableSyntaxNode[] tableSyntaxNodes, IOpenClass openClass)
- Specified by:
validateTablesin classTablesValidator
-
-