Uses of Class
org.mycore.datamodel.language.MCRLanguage
-
Uses of MCRLanguage in org.mycore.datamodel.language
Modifier and TypeFieldDescriptionstatic final MCRLanguage
MCRLanguageFactory.ENGLISH
static final MCRLanguage
MCRLanguageFactory.GERMAN
Modifier and TypeMethodDescriptionMCRLanguageFactory.getDefaultLanguage()
Returns the default language, as configured by "MCR.Metadata.DefaultLang"MCRLanguageFactory.getLanguage
(String code) Returns the language with the given ISO 639-1 or -2 code.static MCRLanguage
MCRLanguageXML.getLanguage
(Element element) Returns the language of the given XML element, by inspecting the xml:lang or lang attribute.Modifier and TypeMethodDescriptionMCRLanguage.getLabels()
Returns all labels used for this languageModifier and TypeMethodDescriptionMCRLanguage.getLabel
(MCRLanguage language) Returns the label in the given languagestatic void
MCRLanguageXML.setLangAttribute
(MCRLanguage lang, Element element) Sets the lang attribute to the ISO 639-2 bibliographic code of the given languagestatic void
MCRLanguageXML.setXMLLangAttribute
(MCRLanguage lang, Element element) Sets the xml:lang attribute to the ISO 639-1 code of the given language