public boolean equals(Object other) { if (other instanceof DataColumnTemplate) { DataColumnTemplate dc = (DataColumnTemplate) other; return this.getKeyName().equals(dc.getKeyName()); } else { return false; } }
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; } }
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; } }
protected BodyColumnTemplate _createBodyColumnTemplate(DataColumnTemplate dct) { return new BodyColumnTemplate(dct.getKeyName()); }