package com.brilliance.isc.common.validator.es.rule.impl;

import com.brilliance.isc.common.validator.es.rule.IRangeRule;
import com.brilliance.isc.common.validator.es.utils.EsConstant;
import org.springframework.stereotype.Component;

/**
 * @author fukai
 * url校验规则，暂未实现
 */
@Component(EsConstant.VALIDATOR_TYPE_URL +"."+EsConstant.VALIDATOR_SUFFIX_NAME)
public class UrlRuleImpl extends AbstractRuleValidator implements IRangeRule {
    /**
     * 获取当前校验器的js实现函数
     *
     * @return
     */
    @Override
    public String getValidateFunction() {
        return String.format("execute%sRule",toUpperFirst(EsConstant.VALIDATOR_TYPE_URL));
    }
}
