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 classWraps the value only if marshalling ISO 19115-3 element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal(org.opengis.util.InternationalString value) Converts anInternationalStringto an object to format into a XML stream.final org.opengis.util.InternationalStringunmarshal(GO_CharacterString value) Converts an object read from a XML stream to anInternationalStringimplementation.
-
Constructor Details
-
InternationalStringAdapter
InternationalStringAdapter()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<GO_CharacterString,org.opengis.util.InternationalString> - Parameters:
value- the wrapper for the value, ornull.- Returns:
- the unwrapped
Stringvalue, ornull.
-
marshal
Converts anInternationalStringto an object to format into a XML stream. JAXB invokes automatically this method at marshalling time.- Specified by:
marshalin classXmlAdapter<GO_CharacterString,org.opengis.util.InternationalString> - Parameters:
value- the string value, ornull.- Returns:
- the wrapper for the given string, or
null.
-