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
  • Constructor Details

    • InternationalStringAdapter

      InternationalStringAdapter()
      Empty constructor for JAXB.
  • Method Details

    • unmarshal

      public final org.opengis.util.InternationalString unmarshal(GO_CharacterString value)
      Converts an object read from a XML stream to an InternationalString implementation. JAXB invokes automatically this method at unmarshalling time.
      Specified by:
      unmarshal in class XmlAdapter<GO_CharacterString,org.opengis.util.InternationalString>
      Parameters:
      value - the wrapper for the value, or null.
      Returns:
      the unwrapped String value, or null.
    • marshal

      public GO_CharacterString marshal(org.opengis.util.InternationalString value)
      Converts an InternationalString to an object to format into a XML stream. JAXB invokes automatically this method at marshalling time.
      Specified by:
      marshal in class XmlAdapter<GO_CharacterString,org.opengis.util.InternationalString>
      Parameters:
      value - the string value, or null.
      Returns:
      the wrapper for the given string, or null.