
de.vdv.ojp20.siri.RemovedDatedVehicleJourneyStructure 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.siri;
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;
/**
* Java class for RemovedDatedVehicleJourneyStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RemovedDatedVehicleJourneyStructure", propOrder = {
"framedVehicleJourneyRef",
"datedVehicleJourneyIndirectRef",
"trainNumbers",
"reasonForRemoval"
})
public class RemovedDatedVehicleJourneyStructure {
@XmlElement(name = "FramedVehicleJourneyRef", required = true)
protected FramedVehicleJourneyRefStructure framedVehicleJourneyRef;
@XmlElement(name = "DatedVehicleJourneyIndirectRef")
protected DatedVehicleJourneyIndirectRefStructure datedVehicleJourneyIndirectRef;
@XmlElement(name = "TrainNumbers")
protected RemovedDatedVehicleJourneyStructure.TrainNumbers trainNumbers;
@XmlElement(name = "ReasonForRemoval", required = true)
protected NaturalLanguageStringStructure reasonForRemoval;
/**
* Gets the value of the framedVehicleJourneyRef property.
*
* @return
* possible object is
* {@link FramedVehicleJourneyRefStructure }
*
*/
public FramedVehicleJourneyRefStructure getFramedVehicleJourneyRef() {
return framedVehicleJourneyRef;
}
/**
* Sets the value of the framedVehicleJourneyRef property.
*
* @param value
* allowed object is
* {@link FramedVehicleJourneyRefStructure }
*
*/
public void setFramedVehicleJourneyRef(FramedVehicleJourneyRefStructure value) {
this.framedVehicleJourneyRef = value;
}
/**
* Gets the value of the datedVehicleJourneyIndirectRef property.
*
* @return
* possible object is
* {@link DatedVehicleJourneyIndirectRefStructure }
*
*/
public DatedVehicleJourneyIndirectRefStructure getDatedVehicleJourneyIndirectRef() {
return datedVehicleJourneyIndirectRef;
}
/**
* Sets the value of the datedVehicleJourneyIndirectRef property.
*
* @param value
* allowed object is
* {@link DatedVehicleJourneyIndirectRefStructure }
*
*/
public void setDatedVehicleJourneyIndirectRef(DatedVehicleJourneyIndirectRefStructure value) {
this.datedVehicleJourneyIndirectRef = value;
}
/**
* Gets the value of the trainNumbers property.
*
* @return
* possible object is
* {@link RemovedDatedVehicleJourneyStructure.TrainNumbers }
*
*/
public RemovedDatedVehicleJourneyStructure.TrainNumbers getTrainNumbers() {
return trainNumbers;
}
/**
* Sets the value of the trainNumbers property.
*
* @param value
* allowed object is
* {@link RemovedDatedVehicleJourneyStructure.TrainNumbers }
*
*/
public void setTrainNumbers(RemovedDatedVehicleJourneyStructure.TrainNumbers value) {
this.trainNumbers = value;
}
/**
* Gets the value of the reasonForRemoval property.
*
* @return
* possible object is
* {@link NaturalLanguageStringStructure }
*
*/
public NaturalLanguageStringStructure getReasonForRemoval() {
return reasonForRemoval;
}
/**
* Sets the value of the reasonForRemoval property.
*
* @param value
* allowed object is
* {@link NaturalLanguageStringStructure }
*
*/
public void setReasonForRemoval(NaturalLanguageStringStructure value) {
this.reasonForRemoval = value;
}
public RemovedDatedVehicleJourneyStructure withFramedVehicleJourneyRef(FramedVehicleJourneyRefStructure value) {
setFramedVehicleJourneyRef(value);
return this;
}
public RemovedDatedVehicleJourneyStructure withDatedVehicleJourneyIndirectRef(DatedVehicleJourneyIndirectRefStructure value) {
setDatedVehicleJourneyIndirectRef(value);
return this;
}
public RemovedDatedVehicleJourneyStructure withTrainNumbers(RemovedDatedVehicleJourneyStructure.TrainNumbers value) {
setTrainNumbers(value);
return this;
}
public RemovedDatedVehicleJourneyStructure withReasonForRemoval(NaturalLanguageStringStructure value) {
setReasonForRemoval(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);
}
/**
* Java class for anonymous complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"trainNumberRef"
})
public static class TrainNumbers {
@XmlElement(name = "TrainNumberRef", required = true)
protected List trainNumberRef;
/**
* Gets the value of the trainNumberRef 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 trainNumberRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getTrainNumberRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TrainNumberRefStructure }
*
*
*
* @return
* The value of the trainNumberRef property.
*/
public List getTrainNumberRef() {
if (trainNumberRef == null) {
trainNumberRef = new ArrayList<>();
}
return this.trainNumberRef;
}
public RemovedDatedVehicleJourneyStructure.TrainNumbers withTrainNumberRef(TrainNumberRefStructure... values) {
if (values!= null) {
for (TrainNumberRefStructure value: values) {
getTrainNumberRef().add(value);
}
}
return this;
}
public RemovedDatedVehicleJourneyStructure.TrainNumbers withTrainNumberRef(Collection values) {
if (values!= null) {
getTrainNumberRef().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);
}
}
}