
de.vdv.ojp20.TimedLegStructure Maven / Gradle / Ivy
Show all versions of ojp-java-model Show documentation
//
// 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 jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Corresponds to a RIDE or PT RIDE LEG in TM 6.2 with the attribute Timed (with related information). Passenger LEG with timetabled schedule.
*
* Java class for TimedLegStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TimedLegStructure", propOrder = {
"legBoard",
"legIntermediate",
"legAlight",
"service",
"legAttribute",
"operatingDays",
"operatingDaysDescription",
"legTrack",
"parallelService",
"emissionCO2",
"extension"
})
public class TimedLegStructure {
/**
* Stop/Station where boarding is done
*
*/
@XmlElement(name = "LegBoard", required = true)
protected LegBoardStructure legBoard;
/**
* Information about the intermediate passed stop points.
*
*/
@XmlElement(name = "LegIntermediate")
protected List legIntermediate;
/**
* Stop/Station to alight
*
*/
@XmlElement(name = "LegAlight", required = true)
protected LegAlightStructure legAlight;
/**
* Service that is used for this leg.
*
*/
@XmlElement(name = "Service", required = true)
protected DatedJourneyStructure service;
/**
* Attributes that are not valid on the whole service, but only on parts of the journey leg.
*
*/
@XmlElement(name = "LegAttribute")
protected List legAttribute;
/**
* Bit string definition of operating days.
*
*/
@XmlElement(name = "OperatingDays")
protected OperatingDaysStructure operatingDays;
/**
* Textual description of the operation days, e.g., "Monday to Friday" or "not on holidays".
*
*/
@XmlElement(name = "OperatingDaysDescription")
protected InternationalTextStructure operatingDaysDescription;
/**
* Geographic embedding of this leg.
*
*/
@XmlElement(name = "LegTrack")
protected LegTrackStructure legTrack;
/**
* Services running combined with at least parts of this journey, e.g., wing trains. The contained stop sequence interval refers to the original journey.
*
*/
@XmlElement(name = "ParallelService")
protected List parallelService;
/**
* Estimation of CO2 emissions.
*
*/
@XmlElement(name = "EmissionCO2")
protected EmissionCO2Structure emissionCO2;
@XmlElement(name = "Extension")
protected Object extension;
/**
* Stop/Station where boarding is done
*
* @return
* possible object is
* {@link LegBoardStructure }
*
*/
public LegBoardStructure getLegBoard() {
return legBoard;
}
/**
* Sets the value of the legBoard property.
*
* @param value
* allowed object is
* {@link LegBoardStructure }
*
* @see #getLegBoard()
*/
public void setLegBoard(LegBoardStructure value) {
this.legBoard = value;
}
/**
* Information about the intermediate passed stop points.
*
* Gets the value of the legIntermediate 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 legIntermediate property.
*
*
* For example, to add a new item, do as follows:
*
*
* getLegIntermediate().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LegIntermediateStructure }
*
*
*
* @return
* The value of the legIntermediate property.
*/
public List getLegIntermediate() {
if (legIntermediate == null) {
legIntermediate = new ArrayList<>();
}
return this.legIntermediate;
}
/**
* Stop/Station to alight
*
* @return
* possible object is
* {@link LegAlightStructure }
*
*/
public LegAlightStructure getLegAlight() {
return legAlight;
}
/**
* Sets the value of the legAlight property.
*
* @param value
* allowed object is
* {@link LegAlightStructure }
*
* @see #getLegAlight()
*/
public void setLegAlight(LegAlightStructure value) {
this.legAlight = value;
}
/**
* Service that is used for this leg.
*
* @return
* possible object is
* {@link DatedJourneyStructure }
*
*/
public DatedJourneyStructure getService() {
return service;
}
/**
* Sets the value of the service property.
*
* @param value
* allowed object is
* {@link DatedJourneyStructure }
*
* @see #getService()
*/
public void setService(DatedJourneyStructure value) {
this.service = value;
}
/**
* Attributes that are not valid on the whole service, but only on parts of the journey leg.
*
* Gets the value of the legAttribute 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 legAttribute property.
*
*
* For example, to add a new item, do as follows:
*
*
* getLegAttribute().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LegAttributeStructure }
*
*
*
* @return
* The value of the legAttribute property.
*/
public List getLegAttribute() {
if (legAttribute == null) {
legAttribute = new ArrayList<>();
}
return this.legAttribute;
}
/**
* Bit string definition of operating days.
*
* @return
* possible object is
* {@link OperatingDaysStructure }
*
*/
public OperatingDaysStructure getOperatingDays() {
return operatingDays;
}
/**
* Sets the value of the operatingDays property.
*
* @param value
* allowed object is
* {@link OperatingDaysStructure }
*
* @see #getOperatingDays()
*/
public void setOperatingDays(OperatingDaysStructure value) {
this.operatingDays = value;
}
/**
* Textual description of the operation days, e.g., "Monday to Friday" or "not on holidays".
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getOperatingDaysDescription() {
return operatingDaysDescription;
}
/**
* Sets the value of the operatingDaysDescription property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getOperatingDaysDescription()
*/
public void setOperatingDaysDescription(InternationalTextStructure value) {
this.operatingDaysDescription = value;
}
/**
* Geographic embedding of this leg.
*
* @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;
}
/**
* Services running combined with at least parts of this journey, e.g., wing trains. The contained stop sequence interval refers to the original journey.
*
* Gets the value of the parallelService 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 parallelService property.
*
*
* For example, to add a new item, do as follows:
*
*
* getParallelService().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ParallelServiceStructure }
*
*
*
* @return
* The value of the parallelService property.
*/
public List getParallelService() {
if (parallelService == null) {
parallelService = new ArrayList<>();
}
return this.parallelService;
}
/**
* 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 TimedLegStructure withLegBoard(LegBoardStructure value) {
setLegBoard(value);
return this;
}
public TimedLegStructure withLegIntermediate(LegIntermediateStructure... values) {
if (values!= null) {
for (LegIntermediateStructure value: values) {
getLegIntermediate().add(value);
}
}
return this;
}
public TimedLegStructure withLegIntermediate(Collection values) {
if (values!= null) {
getLegIntermediate().addAll(values);
}
return this;
}
public TimedLegStructure withLegAlight(LegAlightStructure value) {
setLegAlight(value);
return this;
}
public TimedLegStructure withService(DatedJourneyStructure value) {
setService(value);
return this;
}
public TimedLegStructure withLegAttribute(LegAttributeStructure... values) {
if (values!= null) {
for (LegAttributeStructure value: values) {
getLegAttribute().add(value);
}
}
return this;
}
public TimedLegStructure withLegAttribute(Collection values) {
if (values!= null) {
getLegAttribute().addAll(values);
}
return this;
}
public TimedLegStructure withOperatingDays(OperatingDaysStructure value) {
setOperatingDays(value);
return this;
}
public TimedLegStructure withOperatingDaysDescription(InternationalTextStructure value) {
setOperatingDaysDescription(value);
return this;
}
public TimedLegStructure withLegTrack(LegTrackStructure value) {
setLegTrack(value);
return this;
}
public TimedLegStructure withParallelService(ParallelServiceStructure... values) {
if (values!= null) {
for (ParallelServiceStructure value: values) {
getParallelService().add(value);
}
}
return this;
}
public TimedLegStructure withParallelService(Collection values) {
if (values!= null) {
getParallelService().addAll(values);
}
return this;
}
public TimedLegStructure withEmissionCO2(EmissionCO2Structure value) {
setEmissionCO2(value);
return this;
}
public TimedLegStructure 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);
}
}