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 anInternationalStringto an object to formatted into a XML stream.org.opengis.util.InternationalStringConverts an object read from a XML stream to anInternationalStringimplementation.
-
Constructor Details
-
InternationalStringConverter
public InternationalStringConverter()Empty constructor for JAXB.
-
-
Method Details
-
unmarshal
Converts an object read from a XML stream to anInternationalStringimplementation. JAXB invokes automatically this method at unmarshalling time.- Specified by:
unmarshalin classXmlAdapter<String,org.opengis.util.InternationalString> - Parameters:
adapter- the adapter for the string value.- Returns:
- an
InternationalStringfor the string value.
-
marshal
Converts anInternationalStringto an object to formatted into a XML stream. JAXB invokes automatically this method at marshalling time.- Specified by:
marshalin classXmlAdapter<String,org.opengis.util.InternationalString> - Parameters:
value- the string value.- Returns:
- the adapter for the string.
-