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

de.vdv.ojp20.siri.FormationAssignmentStructure 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.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 FormationAssignmentStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FormationAssignmentStructure", propOrder = { "compoundTrainRef", "trainRef", "trainInCompoundTrainRef", "trainElementRef", "trainComponentRef", "entranceToVehicleRef", "vehicleInFormationStatus", "trainStopAssignment" }) public class FormationAssignmentStructure { @XmlElement(name = "CompoundTrainRef") protected CompoundTrainRefStructure compoundTrainRef; @XmlElement(name = "TrainRef") protected TrainRefStructure trainRef; @XmlElement(name = "TrainInCompoundTrainRef") protected TrainInCompoundTrainRefStructure trainInCompoundTrainRef; @XmlElement(name = "TrainElementRef") protected TrainElementRefStructure trainElementRef; @XmlElement(name = "TrainComponentRef") protected TrainComponentRefStructure trainComponentRef; @XmlElement(name = "EntranceToVehicleRef") protected EntranceToVehicleRefStructure entranceToVehicleRef; @XmlElement(name = "VehicleInFormationStatus") protected VehicleInFormationStatusStructure vehicleInFormationStatus; @XmlElement(name = "TrainStopAssignment", required = true) protected List trainStopAssignment; /** * Gets the value of the compoundTrainRef property. * * @return * possible object is * {@link CompoundTrainRefStructure } * */ public CompoundTrainRefStructure getCompoundTrainRef() { return compoundTrainRef; } /** * Sets the value of the compoundTrainRef property. * * @param value * allowed object is * {@link CompoundTrainRefStructure } * */ public void setCompoundTrainRef(CompoundTrainRefStructure value) { this.compoundTrainRef = 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 trainInCompoundTrainRef property. * * @return * possible object is * {@link TrainInCompoundTrainRefStructure } * */ public TrainInCompoundTrainRefStructure getTrainInCompoundTrainRef() { return trainInCompoundTrainRef; } /** * Sets the value of the trainInCompoundTrainRef property. * * @param value * allowed object is * {@link TrainInCompoundTrainRefStructure } * */ public void setTrainInCompoundTrainRef(TrainInCompoundTrainRefStructure value) { this.trainInCompoundTrainRef = value; } /** * Gets the value of the trainElementRef property. * * @return * possible object is * {@link TrainElementRefStructure } * */ public TrainElementRefStructure getTrainElementRef() { return trainElementRef; } /** * Sets the value of the trainElementRef property. * * @param value * allowed object is * {@link TrainElementRefStructure } * */ public void setTrainElementRef(TrainElementRefStructure value) { this.trainElementRef = value; } /** * Gets the value of the trainComponentRef property. * * @return * possible object is * {@link TrainComponentRefStructure } * */ public TrainComponentRefStructure getTrainComponentRef() { return trainComponentRef; } /** * Sets the value of the trainComponentRef property. * * @param value * allowed object is * {@link TrainComponentRefStructure } * */ public void setTrainComponentRef(TrainComponentRefStructure value) { this.trainComponentRef = value; } /** * Gets the value of the entranceToVehicleRef property. * * @return * possible object is * {@link EntranceToVehicleRefStructure } * */ public EntranceToVehicleRefStructure getEntranceToVehicleRef() { return entranceToVehicleRef; } /** * Sets the value of the entranceToVehicleRef property. * * @param value * allowed object is * {@link EntranceToVehicleRefStructure } * */ public void setEntranceToVehicleRef(EntranceToVehicleRefStructure value) { this.entranceToVehicleRef = value; } /** * Gets the value of the vehicleInFormationStatus property. * * @return * possible object is * {@link VehicleInFormationStatusStructure } * */ public VehicleInFormationStatusStructure getVehicleInFormationStatus() { return vehicleInFormationStatus; } /** * Sets the value of the vehicleInFormationStatus property. * * @param value * allowed object is * {@link VehicleInFormationStatusStructure } * */ public void setVehicleInFormationStatus(VehicleInFormationStatusStructure value) { this.vehicleInFormationStatus = value; } /** * Gets the value of the trainStopAssignment 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 trainStopAssignment property.

* *

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

*
     * getTrainStopAssignment().add(newItem);
     * 
* * *

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

* * * @return * The value of the trainStopAssignment property. */ public List getTrainStopAssignment() { if (trainStopAssignment == null) { trainStopAssignment = new ArrayList<>(); } return this.trainStopAssignment; } public FormationAssignmentStructure withCompoundTrainRef(CompoundTrainRefStructure value) { setCompoundTrainRef(value); return this; } public FormationAssignmentStructure withTrainRef(TrainRefStructure value) { setTrainRef(value); return this; } public FormationAssignmentStructure withTrainInCompoundTrainRef(TrainInCompoundTrainRefStructure value) { setTrainInCompoundTrainRef(value); return this; } public FormationAssignmentStructure withTrainElementRef(TrainElementRefStructure value) { setTrainElementRef(value); return this; } public FormationAssignmentStructure withTrainComponentRef(TrainComponentRefStructure value) { setTrainComponentRef(value); return this; } public FormationAssignmentStructure withEntranceToVehicleRef(EntranceToVehicleRefStructure value) { setEntranceToVehicleRef(value); return this; } public FormationAssignmentStructure withVehicleInFormationStatus(VehicleInFormationStatusStructure value) { setVehicleInFormationStatus(value); return this; } public FormationAssignmentStructure withTrainStopAssignment(StopAssignmentStructure... values) { if (values!= null) { for (StopAssignmentStructure value: values) { getTrainStopAssignment().add(value); } } return this; } public FormationAssignmentStructure withTrainStopAssignment(Collection values) { if (values!= null) { getTrainStopAssignment().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