コード例 #1
0
 /**
  * 使用另外一个 LEPRiskDutySchema 对象给 Schema 赋值
  *
  * @param: aLEPRiskDutySchema LEPRiskDutySchema
  */
 public void setSchema(LEPRiskDutySchema aLEPRiskDutySchema) {
   this.riskCode = aLEPRiskDutySchema.getRiskCode();
   this.riskVer = aLEPRiskDutySchema.getRiskVer();
   this.dutyCode = aLEPRiskDutySchema.getDutyCode();
   this.choFlag = aLEPRiskDutySchema.getChoFlag();
   this.specFlag = aLEPRiskDutySchema.getSpecFlag();
 }
コード例 #2
0
 /**
  * Schema克隆
  *
  * @return Object
  * @throws CloneNotSupportedException
  */
 public Object clone() throws CloneNotSupportedException {
   LEPRiskDutySchema cloned = (LEPRiskDutySchema) super.clone();
   cloned.mErrors = (CErrors) mErrors.clone();
   return cloned;
 }
コード例 #3
0
 public boolean equals(Object otherObject) {
   if (otherObject == null) return false;
   if (this == otherObject) return true;
   if (this.getClass() != otherObject.getClass()) return false;
   LEPRiskDutySchema other = (LEPRiskDutySchema) otherObject;
   if (riskCode == null && other.getRiskCode() != null) return false;
   if (riskCode != null && !riskCode.equals(other.getRiskCode())) return false;
   if (riskVer == null && other.getRiskVer() != null) return false;
   if (riskVer != null && !riskVer.equals(other.getRiskVer())) return false;
   if (dutyCode == null && other.getDutyCode() != null) return false;
   if (dutyCode != null && !dutyCode.equals(other.getDutyCode())) return false;
   if (choFlag == null && other.getChoFlag() != null) return false;
   if (choFlag != null && !choFlag.equals(other.getChoFlag())) return false;
   if (specFlag == null && other.getSpecFlag() != null) return false;
   if (specFlag != null && !specFlag.equals(other.getSpecFlag())) return false;
   return true;
 }
コード例 #4
0
 public LEPRiskDutySchema getSchema() {
   LEPRiskDutySchema aLEPRiskDutySchema = new LEPRiskDutySchema();
   aLEPRiskDutySchema.setSchema(this);
   return aLEPRiskDutySchema;
 }