當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。