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 Details

    • InternationalStringConverter

      public InternationalStringConverter()
      Empty constructor for JAXB.
  • Method Details

    • unmarshal

      public org.opengis.util.InternationalString unmarshal(String adapter)
      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<String,org.opengis.util.InternationalString>
      Parameters:
      adapter - the adapter for the string value.
      Returns:
      an InternationalString for the string value.
    • marshal

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