View Javadoc
1   //
2   // This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
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.08.29 at 06:50:16 PM CEST 
6   //
7   
8   
9   package org.opentrafficsim.xml.generated;
10  
11  import java.io.Serializable;
12  import java.util.ArrayList;
13  import java.util.List;
14  import javax.annotation.Generated;
15  import javax.xml.bind.annotation.XmlAccessType;
16  import javax.xml.bind.annotation.XmlAccessorType;
17  import javax.xml.bind.annotation.XmlAttribute;
18  import javax.xml.bind.annotation.XmlElement;
19  import javax.xml.bind.annotation.XmlElements;
20  import javax.xml.bind.annotation.XmlSeeAlso;
21  import javax.xml.bind.annotation.XmlType;
22  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
23  import org.opentrafficsim.xml.bindings.LaneKeepingPolicyAdapter;
24  import org.opentrafficsim.xml.bindings.types.LaneKeepingPolicyType;
25  
26  
27  /**
28   * <p>Java class for BasicRoadLayout complex type.
29   * 
30   * <p>The following schema fragment specifies the expected content contained within this class.
31   * 
32   * <pre>
33   * &lt;complexType name="BasicRoadLayout"&gt;
34   *   &lt;complexContent&gt;
35   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
36   *       &lt;sequence&gt;
37   *         &lt;choice maxOccurs="unbounded"&gt;
38   *           &lt;element name="Stripe" type="{http://www.opentrafficsim.org/ots}CseStripe" maxOccurs="unbounded" minOccurs="0"/&gt;
39   *           &lt;element name="Lane" type="{http://www.opentrafficsim.org/ots}CseLane" maxOccurs="unbounded" minOccurs="0"/&gt;
40   *           &lt;element name="Shoulder" type="{http://www.opentrafficsim.org/ots}CseShoulder" maxOccurs="unbounded" minOccurs="0"/&gt;
41   *         &lt;/choice&gt;
42   *         &lt;element ref="{http://www.opentrafficsim.org/ots}SpeedLimit" maxOccurs="unbounded" minOccurs="0"/&gt;
43   *       &lt;/sequence&gt;
44   *       &lt;attribute name="LaneKeeping" type="{http://www.opentrafficsim.org/ots}LaneKeepingType" /&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      "stripeOrLaneOrShoulder",
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.7", date = "2024-08-29T18:50:16+02:00")
62  public class BasicRoadLayout
63      implements Serializable
64  {
65  
66      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
67      private final static long serialVersionUID = 10102L;
68      @XmlElements({
69          @XmlElement(name = "Stripe", type = CseStripe.class),
70          @XmlElement(name = "Lane", type = CseLane.class),
71          @XmlElement(name = "Shoulder", type = CseShoulder.class)
72      })
73      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
74      protected List<Serializable> stripeOrLaneOrShoulder;
75      @XmlElement(name = "SpeedLimit")
76      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
77      protected List<SpeedLimit> speedLimit;
78      @XmlAttribute(name = "LaneKeeping")
79      @XmlJavaTypeAdapter(LaneKeepingPolicyAdapter.class)
80      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
81      protected LaneKeepingPolicyType laneKeeping;
82  
83      /**
84       * Gets the value of the stripeOrLaneOrShoulder property.
85       * 
86       * <p>
87       * This accessor method returns a reference to the live list,
88       * not a snapshot. Therefore any modification you make to the
89       * returned list will be present inside the JAXB object.
90       * This is why there is not a <CODE>set</CODE> method for the stripeOrLaneOrShoulder property.
91       * 
92       * <p>
93       * For example, to add a new item, do as follows:
94       * <pre>
95       *    getStripeOrLaneOrShoulder().add(newItem);
96       * </pre>
97       * 
98       * 
99       * <p>
100      * Objects of the following type(s) are allowed in the list
101      * {@link CseLane }
102      * {@link CseShoulder }
103      * {@link CseStripe }
104      * 
105      * 
106      */
107     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
108     public List<Serializable> getStripeOrLaneOrShoulder() {
109         if (stripeOrLaneOrShoulder == null) {
110             stripeOrLaneOrShoulder = new ArrayList<Serializable>();
111         }
112         return this.stripeOrLaneOrShoulder;
113     }
114 
115     /**
116      * Gets the value of the speedLimit property.
117      * 
118      * <p>
119      * This accessor method returns a reference to the live list,
120      * not a snapshot. Therefore any modification you make to the
121      * returned list will be present inside the JAXB object.
122      * This is why there is not a <CODE>set</CODE> method for the speedLimit property.
123      * 
124      * <p>
125      * For example, to add a new item, do as follows:
126      * <pre>
127      *    getSpeedLimit().add(newItem);
128      * </pre>
129      * 
130      * 
131      * <p>
132      * Objects of the following type(s) are allowed in the list
133      * {@link SpeedLimit }
134      * 
135      * 
136      */
137     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
138     public List<SpeedLimit> getSpeedLimit() {
139         if (speedLimit == null) {
140             speedLimit = new ArrayList<SpeedLimit>();
141         }
142         return this.speedLimit;
143     }
144 
145     /**
146      * Gets the value of the laneKeeping property.
147      * 
148      * @return
149      *     possible object is
150      *     {@link String }
151      *     
152      */
153     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
154     public LaneKeepingPolicyType getLaneKeeping() {
155         return laneKeeping;
156     }
157 
158     /**
159      * Sets the value of the laneKeeping property.
160      * 
161      * @param value
162      *     allowed object is
163      *     {@link String }
164      *     
165      */
166     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
167     public void setLaneKeeping(LaneKeepingPolicyType value) {
168         this.laneKeeping = value;
169     }
170 
171 }