Top Constructors Methods
org.jooq.conf

public Class LocaleAdapter

extends XmlAdapter<String, Locale>
Class Inheritance
Imports
java.util.Locale, jakarta.xml.bind.annotation.adapters.XmlAdapter

Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
marshal(Locale
The value to be convereted. Can be null.
v
)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.
public Locale
unmarshal(String
The value to be converted. Can be null.
v
)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Constructor Detail

LocaleAdapterback to summary
public LocaleAdapter()

Method Detail

marshalback to summary
public String marshal(Locale v) throws Exception

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.

Parameters
v:Locale

The value to be convereted. Can be null.

Annotations
@Override
Exceptions
Exception:
if there's an error during the conversion. The caller is responsible for reporting the error to the user through jakarta.xml.bind.ValidationEventHandler.
unmarshalback to summary
public Locale unmarshal(String v) throws Exception

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Parameters
v:String

The value to be converted. Can be null.

Annotations
@Override
Exceptions
Exception:
if there's an error during the conversion. The caller is responsible for reporting the error to the user through jakarta.xml.bind.ValidationEventHandler.