Package org.apache.sis.internal.jaxb.gco
Class InternationalStringAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<GO_CharacterString,org.opengis.util.InternationalString>
org.apache.sis.internal.jaxb.gco.InternationalStringAdapter
- Direct Known Subclasses:
InternationalStringAdapter.Since2014
public class InternationalStringAdapter
extends XmlAdapter<GO_CharacterString,org.opengis.util.InternationalString>
JAXB adapter for XML
<GO_CharacterString>
element mapped to InternationalString
.
This adapter is similar to StringAdapter
, except that the unmarshal
method does
not need to localize InternationalString
instances for the locale specified in the current
marshaller context.- Since:
- 0.3
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Wraps the value only if marshalling ISO 19115-3 element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(org.opengis.util.InternationalString value) Converts anInternationalString
to an object to format into a XML stream.final org.opengis.util.InternationalString
unmarshal
(GO_CharacterString value) Converts an object read from a XML stream to anInternationalString
implementation.
-
Constructor Details
-
InternationalStringAdapter
InternationalStringAdapter()Empty constructor for JAXB.
-
-
Method Details
-
unmarshal
Converts an object read from a XML stream to anInternationalString
implementation. JAXB invokes automatically this method at unmarshalling time.- Specified by:
unmarshal
in classXmlAdapter<GO_CharacterString,
org.opengis.util.InternationalString> - Parameters:
value
- the wrapper for the value, ornull
.- Returns:
- the unwrapped
String
value, ornull
.
-
marshal
Converts anInternationalString
to an object to format into a XML stream. JAXB invokes automatically this method at marshalling time.- Specified by:
marshal
in classXmlAdapter<GO_CharacterString,
org.opengis.util.InternationalString> - Parameters:
value
- the string value, ornull
.- Returns:
- the wrapper for the given string, or
null
.
-