The method IdentifiableEntity.generateTitle() is completely undocumented. For References I only get a citation string using generateTitle() not with getTitleCache(), what's the difference and why do I need to call getTitleCache() some some cdm types while I need to use generateTitle() for others?
#2 Updated by Andreas Müller over 3 years ago
- Tracker changed from bug to task
- Assignee changed from Andreas Müller to Andreas Kohlbecker
For References I only get a citation string using generateTitle() not with getTitleCache()
I can't see this. Generally getTitleCache returns the titleCache. This is either the protected titleCache or the precomputed titleCache or the titleCache computed with generateTitle. But it is up to the implementing classes if they require a recompute each time or only if data has obviously changed (e.g. setXXX or addXXX was called on the entity). If external objects have changed (e.g. the title of the author) the titleCache may not be refreshed.
Can you give an example why you think behavior is different? And in which context you use it. Or just close the ticket if the given documentation is sufficient.