View Javadoc
1   package org.opentrafficsim.road.network.factory.xml.old;
2   
3   import java.io.Serializable;
4   
5   import org.opentrafficsim.core.network.NetworkException;
6   import org.w3c.dom.Node;
7   import org.xml.sax.SAXException;
8   
9   /**
10   * <p>
11   * Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
13   * <p>
14   * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
15   * initial version Jul 24, 2015 <br>
16   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
17   */
18  class StraightTag implements Serializable
19  {
20      /** */
21      private static final long serialVersionUID = 20150724L;
22  
23      /**
24       * Parse the LINK.STRAIGHT tag.
25       * @param straightNode Node; the XML-node to parse
26       * @param parser XmlNetworkLaneParserOld; the parser with the lists of information
27       * @param linkTag LinkTag; the parent link tag
28       * @throws SAXException when parsing of the tag fails
29       * @throws NetworkException when parsing of the tag fails
30       */
31      @SuppressWarnings("checkstyle:needbraces")
32      static void parseStraight(final Node straightNode, final XmlNetworkLaneParserOld parser, final LinkTag linkTag)
33              throws SAXException, NetworkException
34      {
35          linkTag.straightTag = new StraightTag();
36      }
37  
38      /** {@inheritDoc} */
39      @Override
40      public final String toString()
41      {
42          return "StraightTag";
43      }
44  }