当前位置: 首页>>代码示例>>Java>>正文


Java ActionValidator类代码示例

本文整理汇总了Java中org.lastaflute.web.validation.ActionValidator的典型用法代码示例。如果您正苦于以下问题:Java ActionValidator类的具体用法?Java ActionValidator怎么用?Java ActionValidator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ActionValidator类属于org.lastaflute.web.validation包,在下文中一共展示了ActionValidator类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: doCreateValidator

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
@SuppressWarnings("unchecked")
protected <MESSAGES extends UserMessages> ActionValidator<MESSAGES> doCreateValidator(Class<?>... groups) { // for explicit groups
    // cannot cache here, not to keep (random) action instance
    // (it uses the instance method createMessage() for application type)
    return newActionValidator(requestManager // has message manager, user locacle
            , () -> (MESSAGES) createMessages() // for new user messages
            , groups // validator runtime groups
    );
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:10,代码来源:LastaAction.java

示例2: certainlyValidatorNotCalled

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean certainlyValidatorNotCalled() {
    return ActionValidator.certainlyValidatorNotCalled();
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:SimpleDoubleSubmitManager.java

示例3: mightBeValidatable

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean mightBeValidatable(Object value) {
    return !ActionValidator.cannotBeValidatable(value);
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:ResponseBeanValidator.java

示例4: createActionValidator

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected ActionValidator<UserMessages> createActionValidator() {
    final Class<?>[] groups = getValidatorGroups().orElse(ActionValidator.DEFAULT_GROUPS);
    return new ActionValidator<UserMessages>(requestManager, () -> new UserMessages(), groups);
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:5,代码来源:ResponseBeanValidator.java

示例5: executeValidator

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected void executeValidator(ActionValidator<UserMessages> validator, Object bean) {
    validator.simplyValidate(bean);
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:ResponseBeanValidator.java

示例6: certainlyNotBeValidatorCalled

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean certainlyNotBeValidatorCalled() {
    return ActionValidator.certainlyValidatorNotCalled();
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:RedCardableAssist.java

示例7: isValidatorAnnotation

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean isValidatorAnnotation(Class<?> annoType) {
    return ActionValidator.isValidatorAnnotation(annoType);
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:ActionFormMeta.java

示例8: hasNestedBeanAnnotation

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean hasNestedBeanAnnotation(Field field) {
    return ActionValidator.hasNestedBeanAnnotation(field);
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:ExecuteMethodValidatorChecker.java

示例9: createValidator

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected <MESSAGES extends UserMessages> ActionValidator<MESSAGES> createValidator() { // overridden as type-safe
    return doCreateValidator(myValidationGroups());
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:LastaAction.java

示例10: myValidationGroups

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected Class<?>[] myValidationGroups() { // you can override
    return ActionValidator.DEFAULT_GROUPS; // means default group
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:4,代码来源:LastaAction.java

示例11: newActionValidator

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected <MESSAGES extends UserMessages> ActionValidator<MESSAGES> newActionValidator(RequestManager requestManager // has message manager, user locale
        , UserMessagesCreator<MESSAGES> messagesCreator // for new user messages
        , Class<?>... runtimeGroups // validator runtime groups
) { // you can override 
    return new ActionValidator<MESSAGES>(requestManager, messagesCreator, runtimeGroups);
}
 
开发者ID:lastaflute,项目名称:lastaflute,代码行数:7,代码来源:LastaAction.java

示例12: createValidator

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public ActionValidator<HarborMessages> createValidator() { // for co-variant
    return super.createValidator();
}
 
开发者ID:lastaflute,项目名称:lastaflute-example-harbor,代码行数:6,代码来源:HarborBaseAction.java

示例13: createValidator

import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public ActionValidator<IntroMessages> createValidator() { // for co-variant
    return super.createValidator();
}
 
开发者ID:dbflute,项目名称:dbflute-intro,代码行数:6,代码来源:IntroBaseAction.java


注:本文中的org.lastaflute.web.validation.ActionValidator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。