예제 #1
0
 private SOARecord checkSOARecord(SOARecord record) {
   checkNotNull(record.getSerialStyle(), "SerialStyle cannot be null for SOARecord: %s", record);
   SOAData rdata = record.getRData();
   checkNotNull(rdata.getMname(), "rdata.mname cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getRname(), "rdata.rname cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getSerial(), "rdata.serial cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getRefresh(), "rdata.refresh cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getRetry(), "rdata.retry cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getExpire(), "rdata.expire cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getMinimum(), "rdata.minimum cannot be null for SOARecord: %s", record);
   return record;
 }