All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.datalking.common.BindingResult Maven / Gradle / Ivy

The newest version!
package com.github.datalking.common;

import com.github.datalking.beans.PropertyEditorRegistry;

import java.beans.PropertyEditor;
import java.util.Map;

/**
 * 数据绑定的结果 接口
 *
 * @author yaoo on 4/29/18
 */
public interface BindingResult extends Errors {

    String MODEL_KEY_PREFIX = BindingResult.class.getName() + ".";

    Object getTarget();

    Map getModel();

    Object getRawFieldValue(String field);

    PropertyEditor findEditor(String field, Class valueType);

    PropertyEditorRegistry getPropertyEditorRegistry();

//    void addError(ObjectError error);

    String[] resolveMessageCodes(String errorCode);

    String[] resolveMessageCodes(String errorCode, String field);

    void recordSuppressedField(String field);

    String[] getSuppressedFields();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy