frizbog / gedcom4j

Java library for reading/writing genealogy files in GEDCOM format
http://gedcom4j.org
54 stars 36 forks source link

All StringWithCustomTags fields should have overloaded setters that accept Strings #158

Closed frizbog closed 8 years ago

frizbog commented 8 years ago

There are many fields in the object model that are of type StringWithCustomTags. Setting one of these properties requires instantiating a StringWithCustomTags object around the string value you want, and passing that as a parameter to the setter. Most of the time there are no custom tags involved, so some nice syntactic sugar would be to accept a plain String in overloaded setters for these fields, and wrap the raw Strings in StringWithCustomTags objects on-the-fly.