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

de.vdv.ojp20.siri.VehicleOccupancyStructure 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.BigDecimal;
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 org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;


/**
 * 

Java class for VehicleOccupancyStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "VehicleOccupancyStructure", propOrder = { "compoundTrainRef", "trainRef", "trainInCompoundTrainRef", "trainElementRef", "trainComponentRef", "entranceToVehicleRef", "fareClass", "passengerCategory", "occupancyLevel", "occupancyPercentage", "alightingCount", "boardingCount", "onboardCount", "specialPlacesOccupied", "pushchairsOnboardCount", "wheelchairsOnboardCount", "pramsOnboardCount", "bicycleOnboardCount", "totalNumberOfReservedSeats", "groupReservation" }) public class VehicleOccupancyStructure { @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 = "FareClass") @XmlSchemaType(name = "NMTOKEN") protected FareClassEnumeration fareClass; @XmlElement(name = "PassengerCategory") protected NaturalLanguageStringStructure passengerCategory; @XmlElement(name = "OccupancyLevel") @XmlSchemaType(name = "NMTOKEN") protected OccupancyEnumeration occupancyLevel; @XmlElement(name = "OccupancyPercentage") protected BigDecimal occupancyPercentage; @XmlElement(name = "AlightingCount") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger alightingCount; @XmlElement(name = "BoardingCount") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger boardingCount; @XmlElement(name = "OnboardCount") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger onboardCount; @XmlElement(name = "SpecialPlacesOccupied") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger specialPlacesOccupied; @XmlElement(name = "PushchairsOnboardCount") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger pushchairsOnboardCount; @XmlElement(name = "WheelchairsOnboardCount") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger wheelchairsOnboardCount; @XmlElement(name = "PramsOnboardCount") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger pramsOnboardCount; @XmlElement(name = "BicycleOnboardCount") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger bicycleOnboardCount; @XmlElement(name = "TotalNumberOfReservedSeats") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger totalNumberOfReservedSeats; @XmlElement(name = "GroupReservation") protected List groupReservation; /** * 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 fareClass property. * * @return * possible object is * {@link FareClassEnumeration } * */ public FareClassEnumeration getFareClass() { return fareClass; } /** * Sets the value of the fareClass property. * * @param value * allowed object is * {@link FareClassEnumeration } * */ public void setFareClass(FareClassEnumeration value) { this.fareClass = value; } /** * Gets the value of the passengerCategory property. * * @return * possible object is * {@link NaturalLanguageStringStructure } * */ public NaturalLanguageStringStructure getPassengerCategory() { return passengerCategory; } /** * Sets the value of the passengerCategory property. * * @param value * allowed object is * {@link NaturalLanguageStringStructure } * */ public void setPassengerCategory(NaturalLanguageStringStructure value) { this.passengerCategory = value; } /** * Gets the value of the occupancyLevel property. * * @return * possible object is * {@link OccupancyEnumeration } * */ public OccupancyEnumeration getOccupancyLevel() { return occupancyLevel; } /** * Sets the value of the occupancyLevel property. * * @param value * allowed object is * {@link OccupancyEnumeration } * */ public void setOccupancyLevel(OccupancyEnumeration value) { this.occupancyLevel = value; } /** * Gets the value of the occupancyPercentage property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getOccupancyPercentage() { return occupancyPercentage; } /** * Sets the value of the occupancyPercentage property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setOccupancyPercentage(BigDecimal value) { this.occupancyPercentage = value; } /** * Gets the value of the alightingCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getAlightingCount() { return alightingCount; } /** * Sets the value of the alightingCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setAlightingCount(BigInteger value) { this.alightingCount = value; } /** * Gets the value of the boardingCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getBoardingCount() { return boardingCount; } /** * Sets the value of the boardingCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setBoardingCount(BigInteger value) { this.boardingCount = value; } /** * Gets the value of the onboardCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getOnboardCount() { return onboardCount; } /** * Sets the value of the onboardCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setOnboardCount(BigInteger value) { this.onboardCount = value; } /** * Gets the value of the specialPlacesOccupied property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getSpecialPlacesOccupied() { return specialPlacesOccupied; } /** * Sets the value of the specialPlacesOccupied property. * * @param value * allowed object is * {@link BigInteger } * */ public void setSpecialPlacesOccupied(BigInteger value) { this.specialPlacesOccupied = value; } /** * Gets the value of the pushchairsOnboardCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getPushchairsOnboardCount() { return pushchairsOnboardCount; } /** * Sets the value of the pushchairsOnboardCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setPushchairsOnboardCount(BigInteger value) { this.pushchairsOnboardCount = value; } /** * Gets the value of the wheelchairsOnboardCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getWheelchairsOnboardCount() { return wheelchairsOnboardCount; } /** * Sets the value of the wheelchairsOnboardCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setWheelchairsOnboardCount(BigInteger value) { this.wheelchairsOnboardCount = value; } /** * Gets the value of the pramsOnboardCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getPramsOnboardCount() { return pramsOnboardCount; } /** * Sets the value of the pramsOnboardCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setPramsOnboardCount(BigInteger value) { this.pramsOnboardCount = value; } /** * Gets the value of the bicycleOnboardCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getBicycleOnboardCount() { return bicycleOnboardCount; } /** * Sets the value of the bicycleOnboardCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setBicycleOnboardCount(BigInteger value) { this.bicycleOnboardCount = value; } /** * Gets the value of the totalNumberOfReservedSeats property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getTotalNumberOfReservedSeats() { return totalNumberOfReservedSeats; } /** * Sets the value of the totalNumberOfReservedSeats property. * * @param value * allowed object is * {@link BigInteger } * */ public void setTotalNumberOfReservedSeats(BigInteger value) { this.totalNumberOfReservedSeats = value; } /** * Gets the value of the groupReservation 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 groupReservation property.

* *

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

*
     * getGroupReservation().add(newItem);
     * 
* * *

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

* * * @return * The value of the groupReservation property. */ public List getGroupReservation() { if (groupReservation == null) { groupReservation = new ArrayList<>(); } return this.groupReservation; } public VehicleOccupancyStructure withCompoundTrainRef(CompoundTrainRefStructure value) { setCompoundTrainRef(value); return this; } public VehicleOccupancyStructure withTrainRef(TrainRefStructure value) { setTrainRef(value); return this; } public VehicleOccupancyStructure withTrainInCompoundTrainRef(TrainInCompoundTrainRefStructure value) { setTrainInCompoundTrainRef(value); return this; } public VehicleOccupancyStructure withTrainElementRef(TrainElementRefStructure value) { setTrainElementRef(value); return this; } public VehicleOccupancyStructure withTrainComponentRef(TrainComponentRefStructure value) { setTrainComponentRef(value); return this; } public VehicleOccupancyStructure withEntranceToVehicleRef(EntranceToVehicleRefStructure value) { setEntranceToVehicleRef(value); return this; } public VehicleOccupancyStructure withFareClass(FareClassEnumeration value) { setFareClass(value); return this; } public VehicleOccupancyStructure withPassengerCategory(NaturalLanguageStringStructure value) { setPassengerCategory(value); return this; } public VehicleOccupancyStructure withOccupancyLevel(OccupancyEnumeration value) { setOccupancyLevel(value); return this; } public VehicleOccupancyStructure withOccupancyPercentage(BigDecimal value) { setOccupancyPercentage(value); return this; } public VehicleOccupancyStructure withAlightingCount(BigInteger value) { setAlightingCount(value); return this; } public VehicleOccupancyStructure withBoardingCount(BigInteger value) { setBoardingCount(value); return this; } public VehicleOccupancyStructure withOnboardCount(BigInteger value) { setOnboardCount(value); return this; } public VehicleOccupancyStructure withSpecialPlacesOccupied(BigInteger value) { setSpecialPlacesOccupied(value); return this; } public VehicleOccupancyStructure withPushchairsOnboardCount(BigInteger value) { setPushchairsOnboardCount(value); return this; } public VehicleOccupancyStructure withWheelchairsOnboardCount(BigInteger value) { setWheelchairsOnboardCount(value); return this; } public VehicleOccupancyStructure withPramsOnboardCount(BigInteger value) { setPramsOnboardCount(value); return this; } public VehicleOccupancyStructure withBicycleOnboardCount(BigInteger value) { setBicycleOnboardCount(value); return this; } public VehicleOccupancyStructure withTotalNumberOfReservedSeats(BigInteger value) { setTotalNumberOfReservedSeats(value); return this; } public VehicleOccupancyStructure withGroupReservation(GroupReservationStructure... values) { if (values!= null) { for (GroupReservationStructure value: values) { getGroupReservation().add(value); } } return this; } public VehicleOccupancyStructure withGroupReservation(Collection values) { if (values!= null) { getGroupReservation().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