uk.org.ifopt.siri21.ValidityConditionStructure Maven / Gradle / Ivy
Show all versions of siri-java-model Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2025.01.07 at 02:19:41 PM UTC
//
package uk.org.ifopt.siri21;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.w3._2001.xmlschema.Adapter1;
/**
* Type for a validity condition.
*
* Java class for ValidityConditionStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ValidityConditionStructure">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="FromDateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="ToDateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="DayType" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" minOccurs="0"/>
* <element name="Timebands" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Timeband" type="{http://www.ifopt.org.uk/ifopt}TimebandStructure"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ValidityConditionStructure", propOrder = {
"fromDateTime",
"toDateTime",
"dayType",
"timebands"
})
public class ValidityConditionStructure
implements Serializable
{
@XmlElement(name = "FromDateTime", type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime fromDateTime;
@XmlElement(name = "ToDateTime", type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime toDateTime;
@XmlElement(name = "DayType")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String dayType;
@XmlElement(name = "Timebands")
protected List timebands;
/**
* Gets the value of the fromDateTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public ZonedDateTime getFromDateTime() {
return fromDateTime;
}
/**
* Sets the value of the fromDateTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFromDateTime(ZonedDateTime value) {
this.fromDateTime = value;
}
/**
* Gets the value of the toDateTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public ZonedDateTime getToDateTime() {
return toDateTime;
}
/**
* Sets the value of the toDateTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setToDateTime(ZonedDateTime value) {
this.toDateTime = value;
}
/**
* Gets the value of the dayType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDayType() {
return dayType;
}
/**
* Sets the value of the dayType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDayType(String value) {
this.dayType = value;
}
/**
* Gets the value of the timebands property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the timebands property.
*
*
* For example, to add a new item, do as follows:
*
* getTimebands().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ValidityConditionStructure.Timebands }
*
*
*/
public List getTimebands() {
if (timebands == null) {
timebands = new ArrayList();
}
return this.timebands;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Timeband" type="{http://www.ifopt.org.uk/ifopt}TimebandStructure"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"timeband"
})
public static class Timebands
implements Serializable
{
@XmlElement(name = "Timeband", required = true)
protected TimebandStructure timeband;
/**
* Gets the value of the timeband property.
*
* @return
* possible object is
* {@link TimebandStructure }
*
*/
public TimebandStructure getTimeband() {
return timeband;
}
/**
* Sets the value of the timeband property.
*
* @param value
* allowed object is
* {@link TimebandStructure }
*
*/
public void setTimeband(TimebandStructure value) {
this.timeband = value;
}
}
}