spreadsheet.mapper.w2o.validation.rule.buildin.RequireValidatorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spreadsheet-mapper Show documentation
Show all versions of spreadsheet-mapper Show documentation
java mapping library between spreadsheet and object
The newest version!
package spreadsheet.mapper.w2o.validation.rule.buildin;
import spreadsheet.mapper.w2o.validation.rule.DependencyRuleParam;
import spreadsheet.mapper.w2o.validation.rule.SingleCellValidatorFactory;
import spreadsheet.mapper.w2o.validation.validator.cell.buildin.RequireValidator;
/**
* Created by hanwen on 2017/1/22.
*/
public class RequireValidatorFactory implements SingleCellValidatorFactory {
@Override
public RequireValidator create(DependencyRuleParam param, String matchField) {
return new RequireValidator()
.matchField(matchField)
.errorMessage(param.getErrorMessage())
.group(param.getGroup())
.dependsOn(param.getDependsOn().toArray(new String[0]));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy