コード例 #1
0
 public void setCreatedOn(String createdOn) {
   this.createdOn = createdOn;
   try {
     product.setCreatedOn(CustomDateFormatter.getDateTimeFromString(createdOn));
   } catch (ParseException ex) {
     ex.printStackTrace();
     product.setCreatedOn(null);
   }
 }
コード例 #2
0
 public void setCompatibilityTestDate(String compatibilityTestDate) {
   this.compatiblityTestDate = compatibilityTestDate;
   try {
     compatibilityTest.setCompatibilityTestDate(
         CustomDateFormatter.getDateTimeFromString(compatibilityTestDate));
   } catch (ParseException ex) {
     ex.printStackTrace();
     compatibilityTest.setCompatibilityTestDate(null);
   }
 }
コード例 #3
0
 public String getCompatibilityTestDate() {
   if (compatiblityTestDate != null) return compatiblityTestDate;
   if (compatibilityTest == null) return "";
   return CustomDateFormatter.getDateTimeString(compatibilityTest.getCompatibilityTestDate());
 }
コード例 #4
0
 public String getCreatedOn() {
   if (createdOn != null) return createdOn;
   if (getProduct() == null) return "";
   return CustomDateFormatter.getDateTimeString(product.getCreatedOn());
 }