Package org.hl7.fhir.r5.elementmodel
Class LanguageUtils
java.lang.Object
org.hl7.fhir.r5.elementmodel.LanguageUtils
in here:
* generateTranslations
* importFromTranslations
* stripTranslations
* switchLanguage
in the validator
- Author:
- grahamegrieve generateTranslations = -langTransform export -src {src} -tgt {tgt} -dest {dest} importFromTranslations = -langTransform import -src {src} -tgt {tgt} -dest {dest}
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillSupplement
(CodeSystem csSrc, CodeSystem csDst, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> list) List
<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> generateTranslations
(Element e, String lang) void
generateTranslations
(Element resource, org.hl7.fhir.utilities.i18n.LanguageFileProducer.LanguageProducerLanguageSession session) List
<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> generateTranslations
(Resource res, String lang) getTranslation
(Element e, String lang) getTranslationOrBase
(PrimitiveType<?> e, String lang) boolean
handlesAsElement
(Element element) boolean
handlesAsResource
(Resource resource) boolean
hasTranslation
(Element e, String lang) int
importFromTranslations
(Element resource, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> translations) int
importFromTranslations
(Element resource, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> translations, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages) int
importFromTranslations
(Resource resource, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> translations, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages) static boolean
langsMatch
(String dstLang, String srcLang) static boolean
langsMatch
(org.hl7.fhir.utilities.i18n.AcceptLanguageHeader langs, String srcLang) static boolean
langsMatchExact
(String dstLang, String srcLang) static boolean
langsMatchExact
(org.hl7.fhir.utilities.i18n.AcceptLanguageHeader langs, String srcLang) nameForLang
(String lang) boolean
switchLanguage
(Element e, String lang) titleForLang
(String lang)
-
Field Details
-
TRANSLATION_SUPPLEMENT_RESOURCE_TYPES
-
-
Constructor Details
-
LanguageUtils
-
-
Method Details
-
generateTranslations
public void generateTranslations(Element resource, org.hl7.fhir.utilities.i18n.LanguageFileProducer.LanguageProducerLanguageSession session) -
importFromTranslations
public int importFromTranslations(Element resource, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> translations) -
importFromTranslations
public int importFromTranslations(Element resource, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> translations, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages) -
importFromTranslations
public int importFromTranslations(Resource resource, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> translations, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages) -
langsMatchExact
public static boolean langsMatchExact(org.hl7.fhir.utilities.i18n.AcceptLanguageHeader langs, String srcLang) -
langsMatch
public static boolean langsMatch(org.hl7.fhir.utilities.i18n.AcceptLanguageHeader langs, String srcLang) -
langsMatchExact
-
langsMatch
-
fillSupplement
public void fillSupplement(CodeSystem csSrc, CodeSystem csDst, List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> list) -
nameForLang
-
titleForLang
-
handlesAsResource
-
handlesAsElement
-
generateTranslations
public List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> generateTranslations(Resource res, String lang) -
generateTranslations
public List<org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit> generateTranslations(Element e, String lang) -
switchLanguage
-
hasTranslation
-
getTranslation
-
getTranslationOrBase
-