ROADLAYOUT.java

  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
  3. // See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2019.03.16 at 06:21:55 PM CET
  6. //


  7. package org.opentrafficsim.xml.generated;

  8. import java.util.ArrayList;
  9. import java.util.List;
  10. import javax.annotation.Generated;
  11. import javax.xml.bind.annotation.XmlAccessType;
  12. import javax.xml.bind.annotation.XmlAccessorType;
  13. import javax.xml.bind.annotation.XmlAttribute;
  14. import javax.xml.bind.annotation.XmlElement;
  15. import javax.xml.bind.annotation.XmlElements;
  16. import javax.xml.bind.annotation.XmlRootElement;
  17. import javax.xml.bind.annotation.XmlSchemaType;
  18. import javax.xml.bind.annotation.XmlType;
  19. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  20. import org.djunits.value.vdouble.scalar.Length;
  21. import org.djunits.value.vdouble.scalar.Speed;
  22. import org.opentrafficsim.xml.bindings.LaneKeepingAdapter;
  23. import org.opentrafficsim.xml.bindings.LengthAdapter;
  24. import org.opentrafficsim.xml.bindings.SpeedAdapter;
  25. import org.opentrafficsim.xml.bindings.types.LaneKeepingType;


  26. /**
  27.  * <p>Java class for anonymous complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType&gt;
  33.  *   &lt;complexContent&gt;
  34.  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  35.  *       &lt;sequence&gt;
  36.  *         &lt;element name="SPEEDLIMIT" maxOccurs="unbounded" minOccurs="0"&gt;
  37.  *           &lt;complexType&gt;
  38.  *             &lt;complexContent&gt;
  39.  *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  40.  *                 &lt;attribute name="GTUTYPE" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
  41.  *                 &lt;attribute name="LEGALSPEEDLIMIT" type="{http://www.opentrafficsim.org/ots}SPEEDTYPE" /&gt;
  42.  *               &lt;/restriction&gt;
  43.  *             &lt;/complexContent&gt;
  44.  *           &lt;/complexType&gt;
  45.  *         &lt;/element&gt;
  46.  *         &lt;choice maxOccurs="unbounded"&gt;
  47.  *           &lt;element name="LANE" type="{http://www.opentrafficsim.org/ots}CSELANE" maxOccurs="unbounded" minOccurs="0"/&gt;
  48.  *           &lt;element name="NOTRAFFICLANE" type="{http://www.opentrafficsim.org/ots}CSENOTRAFFICLANE" maxOccurs="unbounded" minOccurs="0"/&gt;
  49.  *           &lt;element name="SHOULDER" type="{http://www.opentrafficsim.org/ots}CSESHOULDER" maxOccurs="unbounded" minOccurs="0"/&gt;
  50.  *           &lt;element name="STRIPE" type="{http://www.opentrafficsim.org/ots}CSESTRIPE" maxOccurs="unbounded" minOccurs="0"/&gt;
  51.  *         &lt;/choice&gt;
  52.  *       &lt;/sequence&gt;
  53.  *       &lt;attribute name="NAME" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
  54.  *       &lt;attribute name="ROADTYPE" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
  55.  *       &lt;attribute name="WIDTH" type="{http://www.opentrafficsim.org/ots}LENGTHTYPE" /&gt;
  56.  *       &lt;attribute name="LANEKEEPING" type="{http://www.opentrafficsim.org/ots}LANEKEEPINGTYPE" /&gt;
  57.  *       &lt;attribute name="OVERTAKING" type="{http://www.opentrafficsim.org/ots}OVERTAKINGTYPE" /&gt;
  58.  *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}base"/&gt;
  59.  *     &lt;/restriction&gt;
  60.  *   &lt;/complexContent&gt;
  61.  * &lt;/complexType&gt;
  62.  * </pre>
  63.  *
  64.  *
  65.  */
  66. @XmlAccessorType(XmlAccessType.FIELD)
  67. @XmlType(name = "", propOrder = {
  68.     "speedlimit",
  69.     "laneOrNOTRAFFICLANEOrSHOULDER"
  70. })
  71. @XmlRootElement(name = "ROADLAYOUT")
  72. @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  73. public class ROADLAYOUT {

  74.     @XmlElement(name = "SPEEDLIMIT")
  75.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  76.     protected List<ROADLAYOUT.SPEEDLIMIT> speedlimit;
  77.     @XmlElements({
  78.         @XmlElement(name = "LANE", type = CSELANE.class),
  79.         @XmlElement(name = "NOTRAFFICLANE", type = CSENOTRAFFICLANE.class),
  80.         @XmlElement(name = "SHOULDER", type = CSESHOULDER.class),
  81.         @XmlElement(name = "STRIPE", type = CSESTRIPE.class)
  82.     })
  83.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  84.     protected List<CROSSSECTIONELEMENT> laneOrNOTRAFFICLANEOrSHOULDER;
  85.     @XmlAttribute(name = "NAME", required = true)
  86.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  87.     protected String name;
  88.     @XmlAttribute(name = "ROADTYPE", required = true)
  89.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  90.     protected String roadtype;
  91.     @XmlAttribute(name = "WIDTH")
  92.     @XmlJavaTypeAdapter(LengthAdapter.class)
  93.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  94.     protected Length width;
  95.     @XmlAttribute(name = "LANEKEEPING")
  96.     @XmlJavaTypeAdapter(LaneKeepingAdapter.class)
  97.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  98.     protected LaneKeepingType lanekeeping;
  99.     @XmlAttribute(name = "OVERTAKING")
  100.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  101.     protected String overtaking;
  102.     @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
  103.     @XmlSchemaType(name = "anyURI")
  104.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  105.     protected String base;

  106.     /**
  107.      * Gets the value of the speedlimit property.
  108.      *
  109.      * <p>
  110.      * This accessor method returns a reference to the live list,
  111.      * not a snapshot. Therefore any modification you make to the
  112.      * returned list will be present inside the JAXB object.
  113.      * This is why there is not a <CODE>set</CODE> method for the speedlimit property.
  114.      *
  115.      * <p>
  116.      * For example, to add a new item, do as follows:
  117.      * <pre>
  118.      *    getSPEEDLIMIT().add(newItem);
  119.      * </pre>
  120.      *
  121.      *
  122.      * <p>
  123.      * Objects of the following type(s) are allowed in the list
  124.      * {@link ROADLAYOUT.SPEEDLIMIT }
  125.      *
  126.      *
  127.      */
  128.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  129.     public List<ROADLAYOUT.SPEEDLIMIT> getSPEEDLIMIT() {
  130.         if (speedlimit == null) {
  131.             speedlimit = new ArrayList<ROADLAYOUT.SPEEDLIMIT>();
  132.         }
  133.         return this.speedlimit;
  134.     }

  135.     /**
  136.      * Gets the value of the laneOrNOTRAFFICLANEOrSHOULDER property.
  137.      *
  138.      * <p>
  139.      * This accessor method returns a reference to the live list,
  140.      * not a snapshot. Therefore any modification you make to the
  141.      * returned list will be present inside the JAXB object.
  142.      * This is why there is not a <CODE>set</CODE> method for the laneOrNOTRAFFICLANEOrSHOULDER property.
  143.      *
  144.      * <p>
  145.      * For example, to add a new item, do as follows:
  146.      * <pre>
  147.      *    getLANEOrNOTRAFFICLANEOrSHOULDER().add(newItem);
  148.      * </pre>
  149.      *
  150.      *
  151.      * <p>
  152.      * Objects of the following type(s) are allowed in the list
  153.      * {@link CSELANE }
  154.      * {@link CSENOTRAFFICLANE }
  155.      * {@link CSESHOULDER }
  156.      * {@link CSESTRIPE }
  157.      *
  158.      *
  159.      */
  160.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  161.     public List<CROSSSECTIONELEMENT> getLANEOrNOTRAFFICLANEOrSHOULDER() {
  162.         if (laneOrNOTRAFFICLANEOrSHOULDER == null) {
  163.             laneOrNOTRAFFICLANEOrSHOULDER = new ArrayList<CROSSSECTIONELEMENT>();
  164.         }
  165.         return this.laneOrNOTRAFFICLANEOrSHOULDER;
  166.     }

  167.     /**
  168.      * Gets the value of the name property.
  169.      *
  170.      * @return
  171.      *     possible object is
  172.      *     {@link String }
  173.      *    
  174.      */
  175.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  176.     public String getNAME() {
  177.         return name;
  178.     }

  179.     /**
  180.      * Sets the value of the name property.
  181.      *
  182.      * @param value
  183.      *     allowed object is
  184.      *     {@link String }
  185.      *    
  186.      */
  187.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  188.     public void setNAME(String value) {
  189.         this.name = value;
  190.     }

  191.     /**
  192.      * Gets the value of the roadtype property.
  193.      *
  194.      * @return
  195.      *     possible object is
  196.      *     {@link String }
  197.      *    
  198.      */
  199.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  200.     public String getROADTYPE() {
  201.         return roadtype;
  202.     }

  203.     /**
  204.      * Sets the value of the roadtype property.
  205.      *
  206.      * @param value
  207.      *     allowed object is
  208.      *     {@link String }
  209.      *    
  210.      */
  211.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  212.     public void setROADTYPE(String value) {
  213.         this.roadtype = value;
  214.     }

  215.     /**
  216.      * Gets the value of the width property.
  217.      *
  218.      * @return
  219.      *     possible object is
  220.      *     {@link String }
  221.      *    
  222.      */
  223.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  224.     public Length getWIDTH() {
  225.         return width;
  226.     }

  227.     /**
  228.      * Sets the value of the width property.
  229.      *
  230.      * @param value
  231.      *     allowed object is
  232.      *     {@link String }
  233.      *    
  234.      */
  235.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  236.     public void setWIDTH(Length value) {
  237.         this.width = value;
  238.     }

  239.     /**
  240.      * Gets the value of the lanekeeping property.
  241.      *
  242.      * @return
  243.      *     possible object is
  244.      *     {@link String }
  245.      *    
  246.      */
  247.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  248.     public LaneKeepingType getLANEKEEPING() {
  249.         return lanekeeping;
  250.     }

  251.     /**
  252.      * Sets the value of the lanekeeping property.
  253.      *
  254.      * @param value
  255.      *     allowed object is
  256.      *     {@link String }
  257.      *    
  258.      */
  259.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  260.     public void setLANEKEEPING(LaneKeepingType value) {
  261.         this.lanekeeping = value;
  262.     }

  263.     /**
  264.      * Gets the value of the overtaking property.
  265.      *
  266.      * @return
  267.      *     possible object is
  268.      *     {@link String }
  269.      *    
  270.      */
  271.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  272.     public String getOVERTAKING() {
  273.         return overtaking;
  274.     }

  275.     /**
  276.      * Sets the value of the overtaking property.
  277.      *
  278.      * @param value
  279.      *     allowed object is
  280.      *     {@link String }
  281.      *    
  282.      */
  283.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  284.     public void setOVERTAKING(String value) {
  285.         this.overtaking = value;
  286.     }

  287.     /**
  288.      * Gets the value of the base property.
  289.      *
  290.      * @return
  291.      *     possible object is
  292.      *     {@link String }
  293.      *    
  294.      */
  295.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  296.     public String getBase() {
  297.         return base;
  298.     }

  299.     /**
  300.      * Sets the value of the base property.
  301.      *
  302.      * @param value
  303.      *     allowed object is
  304.      *     {@link String }
  305.      *    
  306.      */
  307.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  308.     public void setBase(String value) {
  309.         this.base = value;
  310.     }


  311.     /**
  312.      * <p>Java class for anonymous complex type.
  313.      *
  314.      * <p>The following schema fragment specifies the expected content contained within this class.
  315.      *
  316.      * <pre>
  317.      * &lt;complexType&gt;
  318.      *   &lt;complexContent&gt;
  319.      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  320.      *       &lt;attribute name="GTUTYPE" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
  321.      *       &lt;attribute name="LEGALSPEEDLIMIT" type="{http://www.opentrafficsim.org/ots}SPEEDTYPE" /&gt;
  322.      *     &lt;/restriction&gt;
  323.      *   &lt;/complexContent&gt;
  324.      * &lt;/complexType&gt;
  325.      * </pre>
  326.      *
  327.      *
  328.      */
  329.     @XmlAccessorType(XmlAccessType.FIELD)
  330.     @XmlType(name = "")
  331.     @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  332.     public static class SPEEDLIMIT {

  333.         @XmlAttribute(name = "GTUTYPE", required = true)
  334.         @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  335.         protected String gtutype;
  336.         @XmlAttribute(name = "LEGALSPEEDLIMIT")
  337.         @XmlJavaTypeAdapter(SpeedAdapter.class)
  338.         @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  339.         protected Speed legalspeedlimit;

  340.         /**
  341.          * Gets the value of the gtutype property.
  342.          *
  343.          * @return
  344.          *     possible object is
  345.          *     {@link String }
  346.          *    
  347.          */
  348.         @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  349.         public String getGTUTYPE() {
  350.             return gtutype;
  351.         }

  352.         /**
  353.          * Sets the value of the gtutype property.
  354.          *
  355.          * @param value
  356.          *     allowed object is
  357.          *     {@link String }
  358.          *    
  359.          */
  360.         @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  361.         public void setGTUTYPE(String value) {
  362.             this.gtutype = value;
  363.         }

  364.         /**
  365.          * Gets the value of the legalspeedlimit property.
  366.          *
  367.          * @return
  368.          *     possible object is
  369.          *     {@link String }
  370.          *    
  371.          */
  372.         @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  373.         public Speed getLEGALSPEEDLIMIT() {
  374.             return legalspeedlimit;
  375.         }

  376.         /**
  377.          * Sets the value of the legalspeedlimit property.
  378.          *
  379.          * @param value
  380.          *     allowed object is
  381.          *     {@link String }
  382.          *    
  383.          */
  384.         @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-03-16T06:21:55+01:00", comments = "JAXB RI v2.3.0")
  385.         public void setLEGALSPEEDLIMIT(Speed value) {
  386.             this.legalspeedlimit = value;
  387.         }

  388.     }

  389. }