Revision 4ce34990
Added by Andreas Müller almost 12 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiNoteExport.java | ||
---|---|---|
402 | 402 |
* Returns the <code>LanguageCache</code> attribute. |
403 | 403 |
* @param descriptionElement The {@link DescriptionElementBase DescriptionElement}. |
404 | 404 |
* @return The <code>LanguageCache</code> attribute. |
405 |
* @throws UndefinedTransformerMethodException |
|
405 | 406 |
* @see MethodMapper |
406 | 407 |
*/ |
407 | 408 |
@SuppressWarnings("unused") |
408 |
private static String getLanguageCache(DescriptionElementBase descriptionElement) {
|
|
409 |
private static String getLanguageCache(DescriptionElementBase descriptionElement, PesiExportState state) throws UndefinedTransformerMethodException {
|
|
409 | 410 |
Language language = getLanguage(descriptionElement); |
410 |
|
|
411 |
return PesiTransformer.language2LanguageCache(language); |
|
411 |
return state.getTransformer().getCacheByLanguage(language); |
|
412 | 412 |
} |
413 | 413 |
|
414 | 414 |
private static Language getLanguage(DescriptionElementBase descriptionElement) { |
Also available in: Unified diff
some cleaning up with status maps