예제 #1
0
 public boolean equals(Object other) {
   if (other instanceof DataColumnTemplate) {
     DataColumnTemplate dc = (DataColumnTemplate) other;
     return this.getKeyName().equals(dc.getKeyName());
   } else {
     return false;
   }
 }
예제 #2
0
 public BodyColumnTemplate getBodyColumnTemplate(DataColumnTemplate dct) {
   if (dct != null) {
     String keyName = dct.getKeyName();
     if (this.bodyColumnMap.containsKey(keyName)) {
       return this.bodyColumnMap.get(keyName);
     } else {
       BodyColumnTemplate bct = this._createBodyColumnTemplate(dct);
       this.bodyColumnMap.put(keyName, bct);
       return bct;
     }
   } else {
     Print.logStackTrace("DataColumnTemplate is null!");
     return null;
   }
 }
예제 #3
0
 public HeaderColumnTemplate getHeaderColumnTemplate(DataColumnTemplate dct) {
   if (dct != null) {
     String keyName = dct.getKeyName();
     if (this.headerColumnMap.containsKey(keyName)) {
       return this.headerColumnMap.get(keyName);
     } else {
       HeaderColumnTemplate hct = this._createHeaderColumnTemplate(dct);
       this.headerColumnMap.put(keyName, hct);
       return hct;
     }
   } else {
     Print.logStackTrace("DataColumnTemplate is null!");
     return null;
   }
 }
예제 #4
0
 protected BodyColumnTemplate _createBodyColumnTemplate(DataColumnTemplate dct) {
   return new BodyColumnTemplate(dct.getKeyName());
 }