Package org.opentrafficsim.xml.bindings
Class LengthBeginEndAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,LengthBeginEnd>
-
- org.opentrafficsim.xml.bindings.LengthBeginEndAdapter
-
public class LengthBeginEndAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<String,LengthBeginEnd>
LengthAdapter converts between the XML String for a Length and the DJUnits Length. The length should be positive.Copyright (c) 2003-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
-
-
Constructor Summary
Constructors Constructor Description LengthBeginEndAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(LengthBeginEnd lbe)LengthBeginEndunmarshal(String field)
-
-
-
Method Detail
-
unmarshal
public LengthBeginEnd unmarshal(String field) throws IllegalArgumentException
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,LengthBeginEnd>- Throws:
IllegalArgumentException
-
marshal
public String marshal(LengthBeginEnd lbe) throws IllegalArgumentException
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,LengthBeginEnd>- Throws:
IllegalArgumentException
-
-