Package org.opentrafficsim.xml.bindings
Class Point2dAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,E>
org.opentrafficsim.xml.bindings.ExpressionAdapter<org.djutils.draw.point.Point2d,Point2dType>
org.opentrafficsim.xml.bindings.Point2dAdapter
Point2dAdapter converts between the XML String for a coordinate and a Point2d.
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
-
Point2dAdapter
public Point2dAdapter()
-
-
Method Details
-
unmarshal
- Specified by:
unmarshal
in classExpressionAdapter<org.djutils.draw.point.Point2d,
Point2dType> - Throws:
IllegalArgumentException
-
marshal
- Overrides:
marshal
in classExpressionAdapter<org.djutils.draw.point.Point2d,
Point2dType> - Throws:
IllegalArgumentException
-