
de.vdv.ojp20.ServiceArrivalStructure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ojp-java-model Show documentation
Show all versions of ojp-java-model Show documentation
Generates Java model from OJP xsds using jaxb.
The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package de.vdv.ojp20;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import de.vdv.ojp20.siri.FormationAssignmentStructure;
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.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import org.opentripplanner.ojp.time.XmlDateTime;
import org.opentripplanner.ojp.util.XmlDateTimeAdapter;
/**
* Arrival times of a service at a stop (group of attributes of TIMETABLED PASSING TIME, ESTIMATED PASSING TIME, OBSERVED PASSING TIME, equals MONITORED LEG ARRIVAL).
*
* Java class for ServiceArrivalStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ServiceArrivalStructure", propOrder = {
"timetabledTime",
"recordedAtTime",
"estimatedTime",
"estimatedTimeLow",
"estimatedTimeHigh",
"arrivalFormationAssignment"
})
public class ServiceArrivalStructure {
/**
* time at point as it is published
*
*/
@XmlElement(name = "TimetabledTime", required = true, type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime timetabledTime;
/**
* time as it was recorded
*
*/
@XmlElement(name = "RecordedAtTime", type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime recordedAtTime;
/**
* estimated time (for prognosis)
*
*/
@XmlElement(name = "EstimatedTime", type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime estimatedTime;
/**
* Estimated lower limit for time.
*
*/
@XmlElement(name = "EstimatedTimeLow", type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime estimatedTimeLow;
/**
* Estimated upper limit for time.
*
*/
@XmlElement(name = "EstimatedTimeHigh", type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime estimatedTimeHigh;
@XmlElement(name = "ArrivalFormationAssignment", namespace = "http://www.siri.org.uk/siri")
protected List arrivalFormationAssignment;
/**
* time at point as it is published
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getTimetabledTime() {
return timetabledTime;
}
/**
* Sets the value of the timetabledTime property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getTimetabledTime()
*/
public void setTimetabledTime(XmlDateTime value) {
this.timetabledTime = value;
}
/**
* time as it was recorded
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getRecordedAtTime() {
return recordedAtTime;
}
/**
* Sets the value of the recordedAtTime property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getRecordedAtTime()
*/
public void setRecordedAtTime(XmlDateTime value) {
this.recordedAtTime = value;
}
/**
* estimated time (for prognosis)
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getEstimatedTime() {
return estimatedTime;
}
/**
* Sets the value of the estimatedTime property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getEstimatedTime()
*/
public void setEstimatedTime(XmlDateTime value) {
this.estimatedTime = value;
}
/**
* Estimated lower limit for time.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getEstimatedTimeLow() {
return estimatedTimeLow;
}
/**
* Sets the value of the estimatedTimeLow property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getEstimatedTimeLow()
*/
public void setEstimatedTimeLow(XmlDateTime value) {
this.estimatedTimeLow = value;
}
/**
* Estimated upper limit for time.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getEstimatedTimeHigh() {
return estimatedTimeHigh;
}
/**
* Sets the value of the estimatedTimeHigh property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getEstimatedTimeHigh()
*/
public void setEstimatedTimeHigh(XmlDateTime value) {
this.estimatedTimeHigh = value;
}
/**
* Gets the value of the arrivalFormationAssignment 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 JAXB object.
* This is why there is not a set
method for the arrivalFormationAssignment property.
*
*
* For example, to add a new item, do as follows:
*
*
* getArrivalFormationAssignment().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FormationAssignmentStructure }
*
*
*
* @return
* The value of the arrivalFormationAssignment property.
*/
public List getArrivalFormationAssignment() {
if (arrivalFormationAssignment == null) {
arrivalFormationAssignment = new ArrayList<>();
}
return this.arrivalFormationAssignment;
}
public ServiceArrivalStructure withTimetabledTime(XmlDateTime value) {
setTimetabledTime(value);
return this;
}
public ServiceArrivalStructure withRecordedAtTime(XmlDateTime value) {
setRecordedAtTime(value);
return this;
}
public ServiceArrivalStructure withEstimatedTime(XmlDateTime value) {
setEstimatedTime(value);
return this;
}
public ServiceArrivalStructure withEstimatedTimeLow(XmlDateTime value) {
setEstimatedTimeLow(value);
return this;
}
public ServiceArrivalStructure withEstimatedTimeHigh(XmlDateTime value) {
setEstimatedTimeHigh(value);
return this;
}
public ServiceArrivalStructure withArrivalFormationAssignment(FormationAssignmentStructure... values) {
if (values!= null) {
for (FormationAssignmentStructure value: values) {
getArrivalFormationAssignment().add(value);
}
}
return this;
}
public ServiceArrivalStructure withArrivalFormationAssignment(Collection values) {
if (values!= null) {
getArrivalFormationAssignment().addAll(values);
}
return this;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, OmitNullsToStringStyle.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy