
de.vdv.ojp20.ContinuousLegStructure 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.math.BigInteger;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
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.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.DurationXmlAdapter;
import org.opentripplanner.ojp.util.XmlDateTimeAdapter;
/**
* [relates to a specific type of RIDE LEG with Timed=false or an ACCESS LEG in TM and NeTEx] leg of a journey that is not bound to a timetable.
*
* Java class for ContinuousLegStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ContinuousLegStructure", propOrder = {
"legStart",
"legEnd",
"service",
"timeWindowStart",
"timeWindowEnd",
"duration",
"legDescription",
"length",
"legTrack",
"pathGuidance",
"feasibility",
"situationFullRefs",
"emissionCO2",
"extension"
})
public class ContinuousLegStructure {
/**
* PLACE where the leg starts (can be a PLACE, SCHEDULED STOP POINT or a VEHICLE MEETING POINT) with time information.
*
*/
@XmlElement(name = "LegStart", required = true)
protected PlaceRefStructure legStart;
/**
* PLACE to alight (can be a SCHEDULED STOP POINT or a VEHICLE MEETING POINT) with time information.
*
*/
@XmlElement(name = "LegEnd", required = true)
protected PlaceRefStructure legEnd;
/**
* Service of this leg.
*
*/
@XmlElement(name = "Service", required = true)
protected ContinuousServiceStructure service;
/**
* Time at which window begins.
*
*/
@XmlElement(name = "TimeWindowStart", type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime timeWindowStart;
/**
* Time at which window ends.
*
*/
@XmlElement(name = "TimeWindowEnd", type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime timeWindowEnd;
/**
* Duration of this leg according to user preferences like walking speed.
*
*/
@XmlElement(name = "Duration", required = true, type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration duration;
/**
* Title or summary of this leg for overview.
*
*/
@XmlElement(name = "LegDescription")
protected InternationalTextStructure legDescription;
/**
* Length of the leg.
*
*/
@XmlElement(name = "Length")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger length;
/**
* Detailed description of each element of this leg including geometric projection.
*
*/
@XmlElement(name = "LegTrack")
protected LegTrackStructure legTrack;
/**
* Structured model further describing this interchange, its geographic embedding and accessibility (LEG.PATH GUIDANCE).
*
*/
@XmlElement(name = "PathGuidance")
protected PathGuidanceStructure pathGuidance;
/**
* Information about the feasibility of the ContinuousLeg, in particular with respect to the access features used.
*
*/
@XmlElement(name = "Feasibility")
@XmlSchemaType(name = "string")
protected List feasibility;
/**
* A list of references to SITUATIONs.
*
*/
@XmlElement(name = "SituationFullRefs")
protected SituationRefList situationFullRefs;
/**
* Estimation of CO2 emissions.
*
*/
@XmlElement(name = "EmissionCO2")
protected EmissionCO2Structure emissionCO2;
@XmlElement(name = "Extension")
protected Object extension;
/**
* PLACE where the leg starts (can be a PLACE, SCHEDULED STOP POINT or a VEHICLE MEETING POINT) with time information.
*
* @return
* possible object is
* {@link PlaceRefStructure }
*
*/
public PlaceRefStructure getLegStart() {
return legStart;
}
/**
* Sets the value of the legStart property.
*
* @param value
* allowed object is
* {@link PlaceRefStructure }
*
* @see #getLegStart()
*/
public void setLegStart(PlaceRefStructure value) {
this.legStart = value;
}
/**
* PLACE to alight (can be a SCHEDULED STOP POINT or a VEHICLE MEETING POINT) with time information.
*
* @return
* possible object is
* {@link PlaceRefStructure }
*
*/
public PlaceRefStructure getLegEnd() {
return legEnd;
}
/**
* Sets the value of the legEnd property.
*
* @param value
* allowed object is
* {@link PlaceRefStructure }
*
* @see #getLegEnd()
*/
public void setLegEnd(PlaceRefStructure value) {
this.legEnd = value;
}
/**
* Service of this leg.
*
* @return
* possible object is
* {@link ContinuousServiceStructure }
*
*/
public ContinuousServiceStructure getService() {
return service;
}
/**
* Sets the value of the service property.
*
* @param value
* allowed object is
* {@link ContinuousServiceStructure }
*
* @see #getService()
*/
public void setService(ContinuousServiceStructure value) {
this.service = value;
}
/**
* Time at which window begins.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getTimeWindowStart() {
return timeWindowStart;
}
/**
* Sets the value of the timeWindowStart property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getTimeWindowStart()
*/
public void setTimeWindowStart(XmlDateTime value) {
this.timeWindowStart = value;
}
/**
* Time at which window ends.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getTimeWindowEnd() {
return timeWindowEnd;
}
/**
* Sets the value of the timeWindowEnd property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getTimeWindowEnd()
*/
public void setTimeWindowEnd(XmlDateTime value) {
this.timeWindowEnd = value;
}
/**
* Duration of this leg according to user preferences like walking speed.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getDuration() {
return duration;
}
/**
* Sets the value of the duration property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getDuration()
*/
public void setDuration(Duration value) {
this.duration = value;
}
/**
* Title or summary of this leg for overview.
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getLegDescription() {
return legDescription;
}
/**
* Sets the value of the legDescription property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getLegDescription()
*/
public void setLegDescription(InternationalTextStructure value) {
this.legDescription = value;
}
/**
* Length of the leg.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLength() {
return length;
}
/**
* Sets the value of the length property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
* @see #getLength()
*/
public void setLength(BigInteger value) {
this.length = value;
}
/**
* Detailed description of each element of this leg including geometric projection.
*
* @return
* possible object is
* {@link LegTrackStructure }
*
*/
public LegTrackStructure getLegTrack() {
return legTrack;
}
/**
* Sets the value of the legTrack property.
*
* @param value
* allowed object is
* {@link LegTrackStructure }
*
* @see #getLegTrack()
*/
public void setLegTrack(LegTrackStructure value) {
this.legTrack = value;
}
/**
* Structured model further describing this interchange, its geographic embedding and accessibility (LEG.PATH GUIDANCE).
*
* @return
* possible object is
* {@link PathGuidanceStructure }
*
*/
public PathGuidanceStructure getPathGuidance() {
return pathGuidance;
}
/**
* Sets the value of the pathGuidance property.
*
* @param value
* allowed object is
* {@link PathGuidanceStructure }
*
* @see #getPathGuidance()
*/
public void setPathGuidance(PathGuidanceStructure value) {
this.pathGuidance = value;
}
/**
* Information about the feasibility of the ContinuousLeg, in particular with respect to the access features used.
*
* Gets the value of the feasibility 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 feasibility property.
*
*
* For example, to add a new item, do as follows:
*
*
* getFeasibility().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FeasibilityEnumeration }
*
*
*
* @return
* The value of the feasibility property.
*/
public List getFeasibility() {
if (feasibility == null) {
feasibility = new ArrayList<>();
}
return this.feasibility;
}
/**
* A list of references to SITUATIONs.
*
* @return
* possible object is
* {@link SituationRefList }
*
*/
public SituationRefList getSituationFullRefs() {
return situationFullRefs;
}
/**
* Sets the value of the situationFullRefs property.
*
* @param value
* allowed object is
* {@link SituationRefList }
*
* @see #getSituationFullRefs()
*/
public void setSituationFullRefs(SituationRefList value) {
this.situationFullRefs = value;
}
/**
* Estimation of CO2 emissions.
*
* @return
* possible object is
* {@link EmissionCO2Structure }
*
*/
public EmissionCO2Structure getEmissionCO2() {
return emissionCO2;
}
/**
* Sets the value of the emissionCO2 property.
*
* @param value
* allowed object is
* {@link EmissionCO2Structure }
*
* @see #getEmissionCO2()
*/
public void setEmissionCO2(EmissionCO2Structure value) {
this.emissionCO2 = value;
}
/**
* Gets the value of the extension property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getExtension() {
return extension;
}
/**
* Sets the value of the extension property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setExtension(Object value) {
this.extension = value;
}
public ContinuousLegStructure withLegStart(PlaceRefStructure value) {
setLegStart(value);
return this;
}
public ContinuousLegStructure withLegEnd(PlaceRefStructure value) {
setLegEnd(value);
return this;
}
public ContinuousLegStructure withService(ContinuousServiceStructure value) {
setService(value);
return this;
}
public ContinuousLegStructure withTimeWindowStart(XmlDateTime value) {
setTimeWindowStart(value);
return this;
}
public ContinuousLegStructure withTimeWindowEnd(XmlDateTime value) {
setTimeWindowEnd(value);
return this;
}
public ContinuousLegStructure withDuration(Duration value) {
setDuration(value);
return this;
}
public ContinuousLegStructure withLegDescription(InternationalTextStructure value) {
setLegDescription(value);
return this;
}
public ContinuousLegStructure withLength(BigInteger value) {
setLength(value);
return this;
}
public ContinuousLegStructure withLegTrack(LegTrackStructure value) {
setLegTrack(value);
return this;
}
public ContinuousLegStructure withPathGuidance(PathGuidanceStructure value) {
setPathGuidance(value);
return this;
}
public ContinuousLegStructure withFeasibility(FeasibilityEnumeration... values) {
if (values!= null) {
for (FeasibilityEnumeration value: values) {
getFeasibility().add(value);
}
}
return this;
}
public ContinuousLegStructure withFeasibility(Collection values) {
if (values!= null) {
getFeasibility().addAll(values);
}
return this;
}
public ContinuousLegStructure withSituationFullRefs(SituationRefList value) {
setSituationFullRefs(value);
return this;
}
public ContinuousLegStructure withEmissionCO2(EmissionCO2Structure value) {
setEmissionCO2(value);
return this;
}
public ContinuousLegStructure withExtension(Object value) {
setExtension(value);
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