Class DoubleAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Double>
net.ihe.gazelle.adapters.DoubleAdapter

public class DoubleAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Double>
The Class DoubleAdapter.
  • Constructor Details

    • DoubleAdapter

      public DoubleAdapter()
  • Method Details

    • marshal

      public String marshal(Double v)
      Marshal a double.
      Specified by:
      marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Double>
      Parameters:
      v - the double to be marshalled
      Returns:
      the marshaling
    • unmarshal

      public Double unmarshal(String v)
      Unmarshal a string to a double.
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Double>
      Parameters:
      v - the String to be unmarshalled.
      Returns:
      the double, result of unmarshalling.