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.StringAdapter;
21  import org.opentrafficsim.xml.bindings.types.BooleanType;
22  import org.opentrafficsim.xml.bindings.types.StringType;
23  
24  
25  /**
26   * <p>Java class for anonymous complex type.
27   * 
28   * <p>The following schema fragment specifies the expected content contained within this class.
29   * 
30   * <pre>
31   * &lt;complexType&gt;
32   *   &lt;complexContent&gt;
33   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
34   *       &lt;attribute name="GtuType" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
35   *       &lt;attribute name="Compatible" type="{http://www.opentrafficsim.org/ots}boolean" default="true" /&gt;
36   *     &lt;/restriction&gt;
37   *   &lt;/complexContent&gt;
38   * &lt;/complexType&gt;
39   * </pre>
40   * 
41   * 
42   */
43  @XmlAccessorType(XmlAccessType.FIELD)
44  @XmlType(name = "")
45  @XmlRootElement(name = "Compatibility")
46  @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
47  public class Compatibility
48      implements Serializable
49  {
50  
51      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
52      private final static long serialVersionUID = 10102L;
53      @XmlAttribute(name = "GtuType", required = true)
54      @XmlJavaTypeAdapter(StringAdapter.class)
55      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
56      protected StringType gtuType;
57      @XmlAttribute(name = "Compatible")
58      @XmlJavaTypeAdapter(BooleanAdapter.class)
59      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
60      protected BooleanType compatible;
61  
62      /**
63       * Gets the value of the gtuType property.
64       * 
65       * @return
66       *     possible object is
67       *     {@link String }
68       *     
69       */
70      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
71      public StringType getGtuType() {
72          return gtuType;
73      }
74  
75      /**
76       * Sets the value of the gtuType property.
77       * 
78       * @param value
79       *     allowed object is
80       *     {@link String }
81       *     
82       */
83      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
84      public void setGtuType(StringType value) {
85          this.gtuType = value;
86      }
87  
88      /**
89       * Gets the value of the compatible property.
90       * 
91       * @return
92       *     possible object is
93       *     {@link String }
94       *     
95       */
96      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
97      public BooleanType getCompatible() {
98          if (compatible == null) {
99              return new BooleanAdapter().unmarshal("true");
100         } else {
101             return compatible;
102         }
103     }
104 
105     /**
106      * Sets the value of the compatible property.
107      * 
108      * @param value
109      *     allowed 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 void setCompatible(BooleanType value) {
115         this.compatible = value;
116     }
117 
118 }