cool.linco.common.convert.RenderRule Maven / Gradle / Ivy
The newest version!
package cool.linco.common.convert;
/**
* @author Linco
* 本对象包装在map String, RenderRule 使用
* map 的key为字典项名 dictKey
* keyField为数据来源字段名
* renderField为转化后的字段名
*
*/
public class RenderRule {
private String keyField;
private String renderField;
public RenderRule(String keyField, String renderField) {
this.keyField = keyField;
this.renderField = renderField;
}
public RenderRule(String keyField, FieldNameUtil.SFunction nameFunction) {
this.keyField = keyField;
this.renderField = FieldNameUtil.getField(nameFunction);
}
public String getKeyField() {
return keyField;
}
public String getRenderField() {
return renderField;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy