All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.vdv.ojp20.StopEventStructure Maven / Gradle / Ivy

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 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;


/**
 * Stop event structure.
 * 
 * 

Java class for StopEventStructure complex type

. * *

The following schema fragment specifies the expected content contained within this class.

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *         
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StopEventStructure", propOrder = { "previousCall", "thisCall", "onwardCall", "service", "operatingDays", "operatingDaysDescription", "situationFullRefs", "extension" }) public class StopEventStructure { /** * Calls at stops that happen before this stop event (service pattern of this vehicle journey before this stop event). * */ @XmlElement(name = "PreviousCall") protected List previousCall; /** * The call of this vehicle journey at this stop. * */ @XmlElement(name = "ThisCall", required = true) protected CallAtNearStopStructure thisCall; /** * Calls at stops that happen after this stop event (rest of the service pattern of the vehicle journey). * */ @XmlElement(name = "OnwardCall") protected List onwardCall; /** * Service that calls at this stop. * */ @XmlElement(name = "Service", required = true) protected DatedJourneyStructure service; /** * 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; /** * For SITUATIONs that affect the whole StopEvent. Otherwise, references for SITUATIONs can be added at the different CALL elements * */ @XmlElement(name = "SituationFullRefs") protected SituationRefList situationFullRefs; @XmlElement(name = "Extension") protected Object extension; /** * Calls at stops that happen before this stop event (service pattern of this vehicle journey before this stop event). * * Gets the value of the previousCall 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 previousCall property.

* *

* For example, to add a new item, do as follows: *

*
     * getPreviousCall().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CallAtNearStopStructure } *

* * * @return * The value of the previousCall property. */ public List getPreviousCall() { if (previousCall == null) { previousCall = new ArrayList<>(); } return this.previousCall; } /** * The call of this vehicle journey at this stop. * * @return * possible object is * {@link CallAtNearStopStructure } * */ public CallAtNearStopStructure getThisCall() { return thisCall; } /** * Sets the value of the thisCall property. * * @param value * allowed object is * {@link CallAtNearStopStructure } * * @see #getThisCall() */ public void setThisCall(CallAtNearStopStructure value) { this.thisCall = value; } /** * Calls at stops that happen after this stop event (rest of the service pattern of the vehicle journey). * * Gets the value of the onwardCall 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 onwardCall property.

* *

* For example, to add a new item, do as follows: *

*
     * getOnwardCall().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CallAtNearStopStructure } *

* * * @return * The value of the onwardCall property. */ public List getOnwardCall() { if (onwardCall == null) { onwardCall = new ArrayList<>(); } return this.onwardCall; } /** * Service that calls at this stop. * * @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; } /** * 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; } /** * For SITUATIONs that affect the whole StopEvent. Otherwise, references for SITUATIONs can be added at the different CALL elements * * @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; } /** * 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 StopEventStructure withPreviousCall(CallAtNearStopStructure... values) { if (values!= null) { for (CallAtNearStopStructure value: values) { getPreviousCall().add(value); } } return this; } public StopEventStructure withPreviousCall(Collection values) { if (values!= null) { getPreviousCall().addAll(values); } return this; } public StopEventStructure withThisCall(CallAtNearStopStructure value) { setThisCall(value); return this; } public StopEventStructure withOnwardCall(CallAtNearStopStructure... values) { if (values!= null) { for (CallAtNearStopStructure value: values) { getOnwardCall().add(value); } } return this; } public StopEventStructure withOnwardCall(Collection values) { if (values!= null) { getOnwardCall().addAll(values); } return this; } public StopEventStructure withService(DatedJourneyStructure value) { setService(value); return this; } public StopEventStructure withOperatingDays(OperatingDaysStructure value) { setOperatingDays(value); return this; } public StopEventStructure withOperatingDaysDescription(InternationalTextStructure value) { setOperatingDaysDescription(value); return this; } public StopEventStructure withSituationFullRefs(SituationRefList value) { setSituationFullRefs(value); return this; } public StopEventStructure 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