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 javax.annotation.Generated;
13  import javax.xml.bind.annotation.XmlAccessType;
14  import javax.xml.bind.annotation.XmlAccessorType;
15  import javax.xml.bind.annotation.XmlAttribute;
16  import javax.xml.bind.annotation.XmlRootElement;
17  import javax.xml.bind.annotation.XmlType;
18  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
19  import org.opentrafficsim.xml.bindings.BooleanAdapter;
20  import org.opentrafficsim.xml.bindings.LengthBeginEndAdapter;
21  import org.opentrafficsim.xml.bindings.StringAdapter;
22  import org.opentrafficsim.xml.bindings.types.BooleanType;
23  import org.opentrafficsim.xml.bindings.types.LengthBeginEndType;
24  import org.opentrafficsim.xml.bindings.types.StringType;
25  
26  
27  /**
28   * <p>Java class for anonymous complex type.
29   * 
30   * <p>The following schema fragment specifies the expected content contained within this class.
31   * 
32   * <pre>
33   * &lt;complexType&gt;
34   *   &lt;complexContent&gt;
35   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
36   *       &lt;attribute name="Type" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
37   *       &lt;attribute name="Link" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
38   *       &lt;attribute name="Lane" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
39   *       &lt;attribute name="Position" use="required" type="{http://www.opentrafficsim.org/ots}LengthBeginEndType" /&gt;
40   *       &lt;attribute name="Destination" type="{http://www.opentrafficsim.org/ots}boolean" default="true" /&gt;
41   *     &lt;/restriction&gt;
42   *   &lt;/complexContent&gt;
43   * &lt;/complexType&gt;
44   * </pre>
45   * 
46   * 
47   */
48  @XmlAccessorType(XmlAccessType.FIELD)
49  @XmlType(name = "")
50  @XmlRootElement(name = "Sink")
51  @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
52  public class Sink
53      implements Serializable
54  {
55  
56      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
57      private final static long serialVersionUID = 10102L;
58      @XmlAttribute(name = "Type", required = true)
59      @XmlJavaTypeAdapter(StringAdapter.class)
60      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
61      protected StringType type;
62      @XmlAttribute(name = "Link", required = true)
63      @XmlJavaTypeAdapter(StringAdapter.class)
64      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
65      protected StringType link;
66      @XmlAttribute(name = "Lane", required = true)
67      @XmlJavaTypeAdapter(StringAdapter.class)
68      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
69      protected StringType lane;
70      @XmlAttribute(name = "Position", required = true)
71      @XmlJavaTypeAdapter(LengthBeginEndAdapter.class)
72      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
73      protected LengthBeginEndType position;
74      @XmlAttribute(name = "Destination")
75      @XmlJavaTypeAdapter(BooleanAdapter.class)
76      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
77      protected BooleanType destination;
78  
79      /**
80       * Gets the value of the type property.
81       * 
82       * @return
83       *     possible object is
84       *     {@link String }
85       *     
86       */
87      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
88      public StringType getType() {
89          return type;
90      }
91  
92      /**
93       * Sets the value of the type property.
94       * 
95       * @param value
96       *     allowed object is
97       *     {@link String }
98       *     
99       */
100     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
101     public void setType(StringType value) {
102         this.type = value;
103     }
104 
105     /**
106      * Gets the value of the link property.
107      * 
108      * @return
109      *     possible object is
110      *     {@link String }
111      *     
112      */
113     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
114     public StringType getLink() {
115         return link;
116     }
117 
118     /**
119      * Sets the value of the link property.
120      * 
121      * @param value
122      *     allowed object is
123      *     {@link String }
124      *     
125      */
126     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
127     public void setLink(StringType value) {
128         this.link = value;
129     }
130 
131     /**
132      * Gets the value of the lane property.
133      * 
134      * @return
135      *     possible object is
136      *     {@link String }
137      *     
138      */
139     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
140     public StringType getLane() {
141         return lane;
142     }
143 
144     /**
145      * Sets the value of the lane property.
146      * 
147      * @param value
148      *     allowed object is
149      *     {@link String }
150      *     
151      */
152     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
153     public void setLane(StringType value) {
154         this.lane = value;
155     }
156 
157     /**
158      * Gets the value of the position property.
159      * 
160      * @return
161      *     possible object is
162      *     {@link String }
163      *     
164      */
165     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
166     public LengthBeginEndType getPosition() {
167         return position;
168     }
169 
170     /**
171      * Sets the value of the position property.
172      * 
173      * @param value
174      *     allowed object is
175      *     {@link String }
176      *     
177      */
178     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
179     public void setPosition(LengthBeginEndType value) {
180         this.position = value;
181     }
182 
183     /**
184      * Gets the value of the destination property.
185      * 
186      * @return
187      *     possible object is
188      *     {@link String }
189      *     
190      */
191     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
192     public BooleanType getDestination() {
193         if (destination == null) {
194             return new BooleanAdapter().unmarshal("true");
195         } else {
196             return destination;
197         }
198     }
199 
200     /**
201      * Sets the value of the destination property.
202      * 
203      * @param value
204      *     allowed object is
205      *     {@link String }
206      *     
207      */
208     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
209     public void setDestination(BooleanType value) {
210         this.destination = value;
211     }
212 
213 }