本文整理汇总了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
);
}
示例2: certainlyValidatorNotCalled
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean certainlyValidatorNotCalled() {
return ActionValidator.certainlyValidatorNotCalled();
}
示例3: mightBeValidatable
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean mightBeValidatable(Object value) {
return !ActionValidator.cannotBeValidatable(value);
}
示例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);
}
示例5: executeValidator
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected void executeValidator(ActionValidator<UserMessages> validator, Object bean) {
validator.simplyValidate(bean);
}
示例6: certainlyNotBeValidatorCalled
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean certainlyNotBeValidatorCalled() {
return ActionValidator.certainlyValidatorNotCalled();
}
示例7: isValidatorAnnotation
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean isValidatorAnnotation(Class<?> annoType) {
return ActionValidator.isValidatorAnnotation(annoType);
}
示例8: hasNestedBeanAnnotation
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected boolean hasNestedBeanAnnotation(Field field) {
return ActionValidator.hasNestedBeanAnnotation(field);
}
示例9: createValidator
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected <MESSAGES extends UserMessages> ActionValidator<MESSAGES> createValidator() { // overridden as type-safe
return doCreateValidator(myValidationGroups());
}
示例10: myValidationGroups
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
protected Class<?>[] myValidationGroups() { // you can override
return ActionValidator.DEFAULT_GROUPS; // means default group
}
示例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);
}
示例12: createValidator
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public ActionValidator<HarborMessages> createValidator() { // for co-variant
return super.createValidator();
}
示例13: createValidator
import org.lastaflute.web.validation.ActionValidator; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public ActionValidator<IntroMessages> createValidator() { // for co-variant
return super.createValidator();
}