this.name = name;
this.regularExpression = regularExpression;
}
+ public TemplateHeader(TemplateHeader origin) {
+ id = origin.id;
+ name = origin.name;
+ regularExpression = origin.regularExpression;
+ testText = origin.testText;
+ transactionDescription = origin.transactionDescription;
+ transactionDescriptionMatchGroup = origin.transactionDescriptionMatchGroup;
+ transactionComment = origin.transactionComment;
+ transactionCommentMatchGroup = origin.transactionCommentMatchGroup;
+ dateYear = origin.dateYear;
+ dateYearMatchGroup = origin.dateYearMatchGroup;
+ dateMonth = origin.dateMonth;
+ dateMonthMatchGroup = origin.dateMonthMatchGroup;
+ dateDay = origin.dateDay;
+ dateDayMatchGroup = origin.dateDayMatchGroup;
+ }
public String getTestText() {
return testText;
}
Misc.equalIntegers(dateYear, o.dateYear) &&
Misc.equalIntegers(dateYearMatchGroup, o.dateYearMatchGroup);
}
+ public TemplateHeader createDuplicate() {
+ TemplateHeader dup = new TemplateHeader(this);
+ dup.id = null;
+
+ return dup;
+ }
}