public final class LocaleAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Locale>
Converts an Locale
to a string representation using Locale.toLanguageTag()
and vice versa, using Locale.forLanguageTag(String)
}.
Constructor and Description |
---|
LocaleAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
marshal(java.util.Locale v) |
java.util.Locale |
unmarshal(java.lang.String v) |
public final java.util.Locale unmarshal(java.lang.String v)
unmarshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Locale>
public final java.lang.String marshal(java.util.Locale v)
marshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Locale>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.