Package org.opentrafficsim.xml.bindings
Class ArcDirectionAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,E>
org.opentrafficsim.xml.bindings.ExpressionAdapter<ArcDirectionType.ArcDirection,ArcDirectionType>
org.opentrafficsim.xml.bindings.ArcDirectionAdapter
public class ArcDirectionAdapter
extends ExpressionAdapter<ArcDirectionType.ArcDirection,ArcDirectionType>
ArcDirectionAdapter to convert between XML representations of an arc direction, coded as L | LEFT | R | RIGHT | CLOCKWISE |
COUNTERCLOCKWISE, and an enum type.
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
-
ArcDirectionAdapter
public ArcDirectionAdapter()
-
-
Method Details
-
unmarshal
- Specified by:
unmarshal
in classExpressionAdapter<ArcDirectionType.ArcDirection,
ArcDirectionType> - Throws:
IllegalArgumentException
-
marshal
- Overrides:
marshal
in classExpressionAdapter<ArcDirectionType.ArcDirection,
ArcDirectionType> - Throws:
IllegalArgumentException
-