
org.meeuw.i18n.languages.jaxb.LanguageCodeAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of i18n-iso-639 Show documentation
Show all versions of i18n-iso-639 Show documentation
Provides a class with one instance of every of the ISO 639 languages
package org.meeuw.i18n.languages.jaxb;
import jakarta.xml.bind.annotation.adapters.XmlAdapter;
import org.meeuw.i18n.languages.ISO_639_Code;
import static org.meeuw.i18n.languages.ISO_639.lenientIso639;
public class LanguageCodeAdapter extends XmlAdapter {
@Override
public ISO_639_Code unmarshal(String v) {
return lenientIso639(v);
}
@Override
public String marshal(ISO_639_Code v) {
return v.code();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy