BASICROADLAYOUT.java

  1. //
  2. // This file was generated by the Eclipse Implementation of JAXB, v2.3.6
  3. // See https://eclipse-ee4j.github.io/jaxb-ri
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2024.05.19 at 12:55:27 AM CEST
  6. //


  7. package org.opentrafficsim.xml.generated;

  8. import java.io.Serializable;
  9. import java.util.ArrayList;
  10. import java.util.List;
  11. import javax.annotation.Generated;
  12. import javax.xml.bind.annotation.XmlAccessType;
  13. import javax.xml.bind.annotation.XmlAccessorType;
  14. import javax.xml.bind.annotation.XmlAttribute;
  15. import javax.xml.bind.annotation.XmlElement;
  16. import javax.xml.bind.annotation.XmlElements;
  17. import javax.xml.bind.annotation.XmlSchemaType;
  18. import javax.xml.bind.annotation.XmlSeeAlso;
  19. import javax.xml.bind.annotation.XmlType;
  20. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  21. import org.opentrafficsim.xml.bindings.LaneKeepingAdapter;
  22. import org.opentrafficsim.xml.bindings.types.LaneKeepingType;


  23. /**
  24.  * <p>Java class for BASICROADLAYOUT complex type.
  25.  *
  26.  * <p>The following schema fragment specifies the expected content contained within this class.
  27.  *
  28.  * <pre>
  29.  * &lt;complexType name="BASICROADLAYOUT"&gt;
  30.  *   &lt;complexContent&gt;
  31.  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  32.  *       &lt;sequence&gt;
  33.  *         &lt;sequence maxOccurs="unbounded"&gt;
  34.  *           &lt;choice&gt;
  35.  *             &lt;element name="LANE" type="{http://www.opentrafficsim.org/ots}CSELANE" maxOccurs="unbounded" minOccurs="0"/&gt;
  36.  *             &lt;element name="NOTRAFFICLANE" type="{http://www.opentrafficsim.org/ots}CSENOTRAFFICLANE" maxOccurs="unbounded" minOccurs="0"/&gt;
  37.  *             &lt;element name="SHOULDER" type="{http://www.opentrafficsim.org/ots}CSESHOULDER" maxOccurs="unbounded" minOccurs="0"/&gt;
  38.  *             &lt;element name="STRIPE" type="{http://www.opentrafficsim.org/ots}CSESTRIPE" maxOccurs="unbounded" minOccurs="0"/&gt;
  39.  *           &lt;/choice&gt;
  40.  *         &lt;/sequence&gt;
  41.  *         &lt;element ref="{http://www.opentrafficsim.org/ots}SPEEDLIMIT" maxOccurs="unbounded" minOccurs="0"/&gt;
  42.  *       &lt;/sequence&gt;
  43.  *       &lt;attribute name="LANEKEEPING" type="{http://www.opentrafficsim.org/ots}LANEKEEPINGTYPE" /&gt;
  44.  *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}base"/&gt;
  45.  *     &lt;/restriction&gt;
  46.  *   &lt;/complexContent&gt;
  47.  * &lt;/complexType&gt;
  48.  * </pre>
  49.  *
  50.  *
  51.  */
  52. @XmlAccessorType(XmlAccessType.FIELD)
  53. @XmlType(name = "BASICROADLAYOUT", propOrder = {
  54.     "laneOrNOTRAFFICLANEOrSHOULDER",
  55.     "speedlimit"
  56. })
  57. @XmlSeeAlso({
  58.     org.opentrafficsim.xml.generated.LINK.ROADLAYOUT.class,
  59.     org.opentrafficsim.xml.generated.ROADLAYOUT.class
  60. })
  61. @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  62. public class BASICROADLAYOUT
  63.     implements Serializable
  64. {

  65.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  66.     private final static long serialVersionUID = 10102L;
  67.     @XmlElements({
  68.         @XmlElement(name = "LANE", type = CSELANE.class),
  69.         @XmlElement(name = "NOTRAFFICLANE", type = CSENOTRAFFICLANE.class),
  70.         @XmlElement(name = "SHOULDER", type = CSESHOULDER.class),
  71.         @XmlElement(name = "STRIPE", type = CSESTRIPE.class)
  72.     })
  73.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  74.     protected List<Serializable> laneOrNOTRAFFICLANEOrSHOULDER;
  75.     @XmlElement(name = "SPEEDLIMIT")
  76.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  77.     protected List<SPEEDLIMIT> speedlimit;
  78.     @XmlAttribute(name = "LANEKEEPING")
  79.     @XmlJavaTypeAdapter(LaneKeepingAdapter.class)
  80.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  81.     protected LaneKeepingType lanekeeping;
  82.     @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
  83.     @XmlSchemaType(name = "anyURI")
  84.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  85.     protected String base;

  86.     /**
  87.      * Gets the value of the laneOrNOTRAFFICLANEOrSHOULDER property.
  88.      *
  89.      * <p>
  90.      * This accessor method returns a reference to the live list,
  91.      * not a snapshot. Therefore any modification you make to the
  92.      * returned list will be present inside the JAXB object.
  93.      * This is why there is not a <CODE>set</CODE> method for the laneOrNOTRAFFICLANEOrSHOULDER property.
  94.      *
  95.      * <p>
  96.      * For example, to add a new item, do as follows:
  97.      * <pre>
  98.      *    getLANEOrNOTRAFFICLANEOrSHOULDER().add(newItem);
  99.      * </pre>
  100.      *
  101.      *
  102.      * <p>
  103.      * Objects of the following type(s) are allowed in the list
  104.      * {@link CSELANE }
  105.      * {@link CSENOTRAFFICLANE }
  106.      * {@link CSESHOULDER }
  107.      * {@link CSESTRIPE }
  108.      *
  109.      *
  110.      */
  111.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  112.     public List<Serializable> getLANEOrNOTRAFFICLANEOrSHOULDER() {
  113.         if (laneOrNOTRAFFICLANEOrSHOULDER == null) {
  114.             laneOrNOTRAFFICLANEOrSHOULDER = new ArrayList<Serializable>();
  115.         }
  116.         return this.laneOrNOTRAFFICLANEOrSHOULDER;
  117.     }

  118.     /**
  119.      * Gets the value of the speedlimit property.
  120.      *
  121.      * <p>
  122.      * This accessor method returns a reference to the live list,
  123.      * not a snapshot. Therefore any modification you make to the
  124.      * returned list will be present inside the JAXB object.
  125.      * This is why there is not a <CODE>set</CODE> method for the speedlimit property.
  126.      *
  127.      * <p>
  128.      * For example, to add a new item, do as follows:
  129.      * <pre>
  130.      *    getSPEEDLIMIT().add(newItem);
  131.      * </pre>
  132.      *
  133.      *
  134.      * <p>
  135.      * Objects of the following type(s) are allowed in the list
  136.      * {@link SPEEDLIMIT }
  137.      *
  138.      *
  139.      */
  140.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  141.     public List<SPEEDLIMIT> getSPEEDLIMIT() {
  142.         if (speedlimit == null) {
  143.             speedlimit = new ArrayList<SPEEDLIMIT>();
  144.         }
  145.         return this.speedlimit;
  146.     }

  147.     /**
  148.      * Gets the value of the lanekeeping property.
  149.      *
  150.      * @return
  151.      *     possible object is
  152.      *     {@link String }
  153.      *    
  154.      */
  155.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  156.     public LaneKeepingType getLANEKEEPING() {
  157.         return lanekeeping;
  158.     }

  159.     /**
  160.      * Sets the value of the lanekeeping property.
  161.      *
  162.      * @param value
  163.      *     allowed object is
  164.      *     {@link String }
  165.      *    
  166.      */
  167.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  168.     public void setLANEKEEPING(LaneKeepingType value) {
  169.         this.lanekeeping = value;
  170.     }

  171.     /**
  172.      * Gets the value of the base property.
  173.      *
  174.      * @return
  175.      *     possible object is
  176.      *     {@link String }
  177.      *    
  178.      */
  179.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  180.     public String getBase() {
  181.         return base;
  182.     }

  183.     /**
  184.      * Sets the value of the base property.
  185.      *
  186.      * @param value
  187.      *     allowed object is
  188.      *     {@link String }
  189.      *    
  190.      */
  191.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.6", date = "2024-05-19T00:55:27+02:00")
  192.     public void setBase(String value) {
  193.         this.base = value;
  194.     }

  195. }