Package org.opentrafficsim.xml.bindings
Class LengthBeginEndAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,E>
org.opentrafficsim.xml.bindings.ExpressionAdapter<LengthBeginEndType.LengthBeginEnd,LengthBeginEndType>
org.opentrafficsim.xml.bindings.LengthBeginEndAdapter
public class LengthBeginEndAdapter
extends ExpressionAdapter<LengthBeginEndType.LengthBeginEnd,LengthBeginEndType>
LengthAdapter converts between the XML String for a Length and the DJUnits Length. The length should be positive.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Wouter Schakel
-
Constructor Summary
-
Method Summary
Methods inherited from class org.opentrafficsim.xml.bindings.ExpressionAdapter
isExpression, marshal, trimBrackets
-
Constructor Details
-
LengthBeginEndAdapter
public LengthBeginEndAdapter()
-
-
Method Details
-
unmarshal
- Specified by:
unmarshal
in classExpressionAdapter<LengthBeginEndType.LengthBeginEnd,
LengthBeginEndType> - Throws:
IllegalArgumentException
-
marshal
- Overrides:
marshal
in classExpressionAdapter<LengthBeginEndType.LengthBeginEnd,
LengthBeginEndType>
-