Class LongValidator
- java.lang.Object
-
- org.apache.hop.workflow.action.validator.LongValidator
-
- All Implemented Interfaces:
IActionValidator
public class LongValidator extends Object implements IActionValidator
-
-
Field Summary
Fields Modifier and Type Field Description static LongValidatorINSTANCE-
Fields inherited from interface org.apache.hop.workflow.action.validator.IActionValidator
KEY_LEVEL_ON_FAIL
-
-
Constructor Summary
Constructors Constructor Description LongValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of this validator, unique among all validators.booleanvalidate(ICheckResultSource source, String propertyName, List<ICheckResult> remarks, ValidatorContext context)Using reflection, the validator fetches the field namedpropertyNamefrom the beansourceand runs the validation putting any messages intoremarks.
-
-
-
Field Detail
-
INSTANCE
public static final LongValidator INSTANCE
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IActionValidatorReturns the name of this validator, unique among all validators.- Specified by:
getNamein interfaceIActionValidator- Returns:
- name
-
validate
public boolean validate(ICheckResultSource source, String propertyName, List<ICheckResult> remarks, ValidatorContext context)
Description copied from interface:IActionValidatorUsing reflection, the validator fetches the field namedpropertyNamefrom the beansourceand runs the validation putting any messages intoremarks. The return value istrueif the validation passes.- Specified by:
validatein interfaceIActionValidator- Parameters:
source- bean to validatepropertyName- property to validateremarks- list to which to add messagescontext- any other information needed to perform the validation- Returns:
- validation result
-
-