frizbog / gedcom4j

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

How to use an Adapter? #191

Open JPT77 opened 6 years ago

JPT77 commented 6 years ago

Hi,

I found the Adapters but cannot find out how to use them.

thanks

frizbog commented 6 years ago

The adapters just make using custom tags somewhat more convenient. In the model, they are represented as custom tags (which is also how they are represented in the GEDCOM files themselves). There is no mechanism at this time to auto-detect what dialog is in play. The parser knows which tags to expect because I went through the trouble of looking through the vendor docs to find out how they represent their custom data using custom tags, and wrote the adapters to do so.

On Apr 18, 2018, at 8:42 AM, JPT77 notifications@github.com wrote:

Hi,

I found the Adapters but cannot find out how to use them. Are they only for writing GEDCOMs oder for reading, too? How does the parser know which dialect it reads? How does the parser know which tags to expect?

thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/frizbog/gedcom4j/issues/191, or mute the thread https://github.com/notifications/unsubscribe-auth/ACxHYXL-aNf_A7T57KNQ8wxljYMMTBVTks5tpzSkgaJpZM4TZ_Z5.