use of org.olat.imsmd.xml.manifest.StringType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method setLanguage.
public void setLanguage(String language, String lang) {
GeneralType general = getGeneral(true);
if (general != null) {
StringType type = getFromAny(StringType.class, general.getContent());
if (type == null) {
type = mdObjectFactory.createStringType();
QName languageQNAME = new QName("http://www.imsglobal.org/xsd/imsmd_v1p2", "context");
JAXBElement<StringType> typeEl = new JAXBElement<StringType>(languageQNAME, StringType.class, null, type);
general.getContent().add(typeEl);
}
type.setLang(lang);
type.setValue(language);
}
}
use of org.olat.imsmd.xml.manifest.StringType in project openolat by klemens.
the class ManifestMetadataBuilder method setLanguage.
public void setLanguage(String language, String lang) {
GeneralType general = getGeneral(true);
if (general != null) {
StringType type = getFromAny(StringType.class, general.getContent());
if (type == null) {
type = mdObjectFactory.createStringType();
QName languageQNAME = new QName("http://www.imsglobal.org/xsd/imsmd_v1p2", "context");
JAXBElement<StringType> typeEl = new JAXBElement<StringType>(languageQNAME, StringType.class, null, type);
general.getContent().add(typeEl);
}
type.setLang(lang);
type.setValue(language);
}
}
Aggregations