Package org.apache.sis.internal.jaxb.gco
Class InternationalStringConverter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,org.opengis.util.InternationalString>
org.apache.sis.internal.jaxb.gco.InternationalStringConverter
public final class InternationalStringConverter
extends XmlAdapter<String,org.opengis.util.InternationalString>
JAXB adapter for string values mapped to
InternationalString
. At the difference of
InternationalStringAdapter
, this converter doesn't wrap the string in a new object.- Since:
- 0.3
- Version:
- 0.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(org.opengis.util.InternationalString value) Converts anInternationalString
to an object to formatted into a XML stream.org.opengis.util.InternationalString
Converts an object read from a XML stream to anInternationalString
implementation.
-
Constructor Details
-
InternationalStringConverter
public InternationalStringConverter()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<String,
org.opengis.util.InternationalString> - Parameters:
adapter
- the adapter for the string value.- Returns:
- an
InternationalString
for the string value.
-
marshal
Converts anInternationalString
to an object to formatted into a XML stream. JAXB invokes automatically this method at marshalling time.- Specified by:
marshal
in classXmlAdapter<String,
org.opengis.util.InternationalString> - Parameters:
value
- the string value.- Returns:
- the adapter for the string.
-