增强字符串类,数值类POJO默认值设置调整

This commit is contained in:
wangxin
2018-02-28 10:55:39 +08:00
parent 2103d3abf0
commit 553be71415
16 changed files with 227 additions and 334 deletions

View File

@@ -8,8 +8,6 @@
*/
package com.nis.domain.configuration;
import org.apache.commons.lang.StringUtils;
/**
* @ClassName: SslCertConfig.java
* @Description: TODO
@@ -28,34 +26,16 @@ public class SslCertCfg extends ComplexkeywordCfg{
private static final long serialVersionUID = -6121146112218278084L;
/* (non-Javadoc)
* @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict()
* @see com.nis.domain.configuration.ComplexkeywordCfg#initDefaultValue()
*/
@Override
public String getDistrict() {
if(StringUtils.isBlank(this.district))
return "CERT";
public void initDefaultValue() {
// TODO Auto-generated method stub
else
return super.getDistrict();
}
/* (non-Javadoc)
* @see com.nis.domain.restful.BaseStringConfig#getExprType()
*/
@Override
public Integer getExprType() {
if(this.exprType==null)
return 0;
else
return this.exprType;
}
/* (non-Javadoc)
* @see com.nis.domain.restful.BaseStringConfig#getMatchMethod()
*/
@Override
public Integer getMatchMethod() {
if(this.matchMethod==null)
return 3;
else
return this.matchMethod;
super.initDefaultValue();
this.district="CERT";
this.exprType=0;
this.matchMethod=3;
this.isHexbin=0;
}
}