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

de.vdv.ojp20.siri.TrainInCompoundTrainStructure 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.siri;

import java.math.BigInteger;
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.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;


/**
 * 

Java class for TrainInCompoundTrainStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TrainInCompoundTrainStructure", propOrder = { "trainInCompoundTrainCode", "order", "label", "description", "trainRef", "train", "originRef", "originName", "originShortName", "destinationDisplayAtOrigin", "via", "destinationRef", "destinationName", "destinationShortName", "originDisplayAtDestination", "reversedOrientation", "passages" }) public class TrainInCompoundTrainStructure { @XmlElement(name = "TrainInCompoundTrainCode") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String trainInCompoundTrainCode; @XmlElement(name = "Order", required = true) @XmlSchemaType(name = "positiveInteger") protected BigInteger order; @XmlElement(name = "Label") protected NaturalLanguageStringStructure label; @XmlElement(name = "Description") protected NaturalLanguageStringStructure description; @XmlElement(name = "TrainRef") protected TrainRefStructure trainRef; @XmlElement(name = "Train") protected TrainStructure train; @XmlElement(name = "OriginRef") protected JourneyPlaceRefStructure originRef; @XmlElement(name = "OriginName") protected List originName; @XmlElement(name = "OriginShortName") protected List originShortName; @XmlElement(name = "DestinationDisplayAtOrigin") protected List destinationDisplayAtOrigin; @XmlElement(name = "Via") protected List via; @XmlElement(name = "DestinationRef") protected DestinationRefStructure destinationRef; @XmlElement(name = "DestinationName") protected List destinationName; @XmlElement(name = "DestinationShortName") protected List destinationShortName; @XmlElement(name = "OriginDisplayAtDestination") protected List originDisplayAtDestination; @XmlElement(name = "ReversedOrientation", defaultValue = "false") protected Boolean reversedOrientation; @XmlElement(name = "Passages") protected TrainInCompoundTrainStructure.Passages passages; /** * Gets the value of the trainInCompoundTrainCode property. * * @return * possible object is * {@link String } * */ public String getTrainInCompoundTrainCode() { return trainInCompoundTrainCode; } /** * Sets the value of the trainInCompoundTrainCode property. * * @param value * allowed object is * {@link String } * */ public void setTrainInCompoundTrainCode(String value) { this.trainInCompoundTrainCode = value; } /** * Gets the value of the order property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getOrder() { return order; } /** * Sets the value of the order property. * * @param value * allowed object is * {@link BigInteger } * */ public void setOrder(BigInteger value) { this.order = value; } /** * Gets the value of the label property. * * @return * possible object is * {@link NaturalLanguageStringStructure } * */ public NaturalLanguageStringStructure getLabel() { return label; } /** * Sets the value of the label property. * * @param value * allowed object is * {@link NaturalLanguageStringStructure } * */ public void setLabel(NaturalLanguageStringStructure value) { this.label = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link NaturalLanguageStringStructure } * */ public NaturalLanguageStringStructure getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link NaturalLanguageStringStructure } * */ public void setDescription(NaturalLanguageStringStructure value) { this.description = value; } /** * Gets the value of the trainRef property. * * @return * possible object is * {@link TrainRefStructure } * */ public TrainRefStructure getTrainRef() { return trainRef; } /** * Sets the value of the trainRef property. * * @param value * allowed object is * {@link TrainRefStructure } * */ public void setTrainRef(TrainRefStructure value) { this.trainRef = value; } /** * Gets the value of the train property. * * @return * possible object is * {@link TrainStructure } * */ public TrainStructure getTrain() { return train; } /** * Sets the value of the train property. * * @param value * allowed object is * {@link TrainStructure } * */ public void setTrain(TrainStructure value) { this.train = value; } /** * Gets the value of the originRef property. * * @return * possible object is * {@link JourneyPlaceRefStructure } * */ public JourneyPlaceRefStructure getOriginRef() { return originRef; } /** * Sets the value of the originRef property. * * @param value * allowed object is * {@link JourneyPlaceRefStructure } * */ public void setOriginRef(JourneyPlaceRefStructure value) { this.originRef = value; } /** * Gets the value of the originName 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 originName property.

* *

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

*
     * getOriginName().add(newItem);
     * 
* * *

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

* * * @return * The value of the originName property. */ public List getOriginName() { if (originName == null) { originName = new ArrayList<>(); } return this.originName; } /** * Gets the value of the originShortName 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 originShortName property.

* *

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

*
     * getOriginShortName().add(newItem);
     * 
* * *

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

* * * @return * The value of the originShortName property. */ public List getOriginShortName() { if (originShortName == null) { originShortName = new ArrayList<>(); } return this.originShortName; } /** * Gets the value of the destinationDisplayAtOrigin 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 destinationDisplayAtOrigin property.

* *

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

*
     * getDestinationDisplayAtOrigin().add(newItem);
     * 
* * *

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

* * * @return * The value of the destinationDisplayAtOrigin property. */ public List getDestinationDisplayAtOrigin() { if (destinationDisplayAtOrigin == null) { destinationDisplayAtOrigin = new ArrayList<>(); } return this.destinationDisplayAtOrigin; } /** * Gets the value of the via 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 via property.

* *

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

*
     * getVia().add(newItem);
     * 
* * *

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

* * * @return * The value of the via property. */ public List getVia() { if (via == null) { via = new ArrayList<>(); } return this.via; } /** * Gets the value of the destinationRef property. * * @return * possible object is * {@link DestinationRefStructure } * */ public DestinationRefStructure getDestinationRef() { return destinationRef; } /** * Sets the value of the destinationRef property. * * @param value * allowed object is * {@link DestinationRefStructure } * */ public void setDestinationRef(DestinationRefStructure value) { this.destinationRef = value; } /** * Gets the value of the destinationName 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 destinationName property.

* *

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

*
     * getDestinationName().add(newItem);
     * 
* * *

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

* * * @return * The value of the destinationName property. */ public List getDestinationName() { if (destinationName == null) { destinationName = new ArrayList<>(); } return this.destinationName; } /** * Gets the value of the destinationShortName 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 destinationShortName property.

* *

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

*
     * getDestinationShortName().add(newItem);
     * 
* * *

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

* * * @return * The value of the destinationShortName property. */ public List getDestinationShortName() { if (destinationShortName == null) { destinationShortName = new ArrayList<>(); } return this.destinationShortName; } /** * Gets the value of the originDisplayAtDestination 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 originDisplayAtDestination property.

* *

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

*
     * getOriginDisplayAtDestination().add(newItem);
     * 
* * *

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

* * * @return * The value of the originDisplayAtDestination property. */ public List getOriginDisplayAtDestination() { if (originDisplayAtDestination == null) { originDisplayAtDestination = new ArrayList<>(); } return this.originDisplayAtDestination; } /** * Gets the value of the reversedOrientation property. * * @return * possible object is * {@link Boolean } * */ public Boolean isReversedOrientation() { return reversedOrientation; } /** * Sets the value of the reversedOrientation property. * * @param value * allowed object is * {@link Boolean } * */ public void setReversedOrientation(Boolean value) { this.reversedOrientation = value; } /** * Gets the value of the passages property. * * @return * possible object is * {@link TrainInCompoundTrainStructure.Passages } * */ public TrainInCompoundTrainStructure.Passages getPassages() { return passages; } /** * Sets the value of the passages property. * * @param value * allowed object is * {@link TrainInCompoundTrainStructure.Passages } * */ public void setPassages(TrainInCompoundTrainStructure.Passages value) { this.passages = value; } public TrainInCompoundTrainStructure withTrainInCompoundTrainCode(String value) { setTrainInCompoundTrainCode(value); return this; } public TrainInCompoundTrainStructure withOrder(BigInteger value) { setOrder(value); return this; } public TrainInCompoundTrainStructure withLabel(NaturalLanguageStringStructure value) { setLabel(value); return this; } public TrainInCompoundTrainStructure withDescription(NaturalLanguageStringStructure value) { setDescription(value); return this; } public TrainInCompoundTrainStructure withTrainRef(TrainRefStructure value) { setTrainRef(value); return this; } public TrainInCompoundTrainStructure withTrain(TrainStructure value) { setTrain(value); return this; } public TrainInCompoundTrainStructure withOriginRef(JourneyPlaceRefStructure value) { setOriginRef(value); return this; } public TrainInCompoundTrainStructure withOriginName(NaturalLanguagePlaceNameStructure... values) { if (values!= null) { for (NaturalLanguagePlaceNameStructure value: values) { getOriginName().add(value); } } return this; } public TrainInCompoundTrainStructure withOriginName(Collection values) { if (values!= null) { getOriginName().addAll(values); } return this; } public TrainInCompoundTrainStructure withOriginShortName(NaturalLanguagePlaceNameStructure... values) { if (values!= null) { for (NaturalLanguagePlaceNameStructure value: values) { getOriginShortName().add(value); } } return this; } public TrainInCompoundTrainStructure withOriginShortName(Collection values) { if (values!= null) { getOriginShortName().addAll(values); } return this; } public TrainInCompoundTrainStructure withDestinationDisplayAtOrigin(NaturalLanguagePlaceNameStructure... values) { if (values!= null) { for (NaturalLanguagePlaceNameStructure value: values) { getDestinationDisplayAtOrigin().add(value); } } return this; } public TrainInCompoundTrainStructure withDestinationDisplayAtOrigin(Collection values) { if (values!= null) { getDestinationDisplayAtOrigin().addAll(values); } return this; } public TrainInCompoundTrainStructure withVia(ViaNameStructure... values) { if (values!= null) { for (ViaNameStructure value: values) { getVia().add(value); } } return this; } public TrainInCompoundTrainStructure withVia(Collection values) { if (values!= null) { getVia().addAll(values); } return this; } public TrainInCompoundTrainStructure withDestinationRef(DestinationRefStructure value) { setDestinationRef(value); return this; } public TrainInCompoundTrainStructure withDestinationName(NaturalLanguageStringStructure... values) { if (values!= null) { for (NaturalLanguageStringStructure value: values) { getDestinationName().add(value); } } return this; } public TrainInCompoundTrainStructure withDestinationName(Collection values) { if (values!= null) { getDestinationName().addAll(values); } return this; } public TrainInCompoundTrainStructure withDestinationShortName(NaturalLanguagePlaceNameStructure... values) { if (values!= null) { for (NaturalLanguagePlaceNameStructure value: values) { getDestinationShortName().add(value); } } return this; } public TrainInCompoundTrainStructure withDestinationShortName(Collection values) { if (values!= null) { getDestinationShortName().addAll(values); } return this; } public TrainInCompoundTrainStructure withOriginDisplayAtDestination(NaturalLanguagePlaceNameStructure... values) { if (values!= null) { for (NaturalLanguagePlaceNameStructure value: values) { getOriginDisplayAtDestination().add(value); } } return this; } public TrainInCompoundTrainStructure withOriginDisplayAtDestination(Collection values) { if (values!= null) { getOriginDisplayAtDestination().addAll(values); } return this; } public TrainInCompoundTrainStructure withReversedOrientation(Boolean value) { setReversedOrientation(value); return this; } public TrainInCompoundTrainStructure withPassages(TrainInCompoundTrainStructure.Passages value) { setPassages(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 = { "passageBetweenTrains" }) public static class Passages { @XmlElement(name = "PassageBetweenTrains", required = true) protected List passageBetweenTrains; /** * Gets the value of the passageBetweenTrains 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 passageBetweenTrains property.

* *

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

*
         * getPassageBetweenTrains().add(newItem);
         * 
* * *

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

* * * @return * The value of the passageBetweenTrains property. */ public List getPassageBetweenTrains() { if (passageBetweenTrains == null) { passageBetweenTrains = new ArrayList<>(); } return this.passageBetweenTrains; } public TrainInCompoundTrainStructure.Passages withPassageBetweenTrains(PassageBetweenTrainsStructure... values) { if (values!= null) { for (PassageBetweenTrainsStructure value: values) { getPassageBetweenTrains().add(value); } } return this; } public TrainInCompoundTrainStructure.Passages withPassageBetweenTrains(Collection values) { if (values!= null) { getPassageBetweenTrains().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