本文整理匯總了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();
}