Class UnitAdapter<S extends DoubleScalarInterface<?,​S>>

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​S>
org.opentrafficsim.xml.bindings.UnitAdapter<S>
Direct Known Subclasses:
AccelerationAdapter, AngleAdapter, DirectionAdapter, DurationAdapter, FrequencyAdapter, LengthAdapter, LinearDensityAdapter, PerLengthAdapter, PositiveLengthAdapter, SpeedAdapter, TimeAdapter

public abstract class UnitAdapter<S extends DoubleScalarInterface<?,​S>>
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​S>
UnitAdapter is the generic class for all Unit-based XML-adapters.

Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Alexander Verbraeck
  • Constructor Summary

    Constructors 
    Constructor Description
    UnitAdapter()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String marshal​(S scalar)

    Methods inherited from class javax.xml.bind.annotation.adapters.XmlAdapter

    unmarshal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • marshal

      public java.lang.String marshal​(S scalar)
      Specified by:
      marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​S extends DoubleScalarInterface<?,​S>>