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

de.vdv.ojp20.siri.TrainElementStructure 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.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.XmlList;
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.NormalizedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;


/**
 * 

Java class for TrainElementStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TrainElementStructure", propOrder = { "trainElementCode", "trainElementType", "vehicleNumber", "fareClasses", "name", "shortName", "description", "privateCode", "reversingDirection", "selfPropelled", "typeOfFuel", "euroClass", "maximumPassengerCapacities", "lowFloor", "hasLiftOrRamp", "hasHoist", "length", "width", "height", "weight", "facilities" }) public class TrainElementStructure { @XmlElement(name = "TrainElementCode", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String trainElementCode; @XmlElement(name = "TrainElementType") @XmlSchemaType(name = "NMTOKEN") protected TrainElementTypeEnumeration trainElementType; @XmlElement(name = "VehicleNumber") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String vehicleNumber; @XmlList @XmlElement(name = "FareClasses") protected List fareClasses; @XmlElement(name = "Name") protected NaturalLanguageStringStructure name; @XmlElement(name = "ShortName") protected NaturalLanguageStringStructure shortName; @XmlElement(name = "Description") protected NaturalLanguageStringStructure description; @XmlElement(name = "PrivateCode") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String privateCode; @XmlElement(name = "ReversingDirection", defaultValue = "true") protected Boolean reversingDirection; @XmlElement(name = "SelfPropelled", defaultValue = "true") protected Boolean selfPropelled; @XmlElement(name = "TypeOfFuel") @XmlSchemaType(name = "normalizedString") protected TypeOfFuelEnumeration typeOfFuel; @XmlElement(name = "EuroClass") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String euroClass; @XmlElement(name = "MaximumPassengerCapacities") protected de.vdv.ojp20.siri.CompoundTrainStructure.MaximumPassengerCapacities maximumPassengerCapacities; @XmlElement(name = "LowFloor") protected Boolean lowFloor; @XmlElement(name = "HasLiftOrRamp") protected Boolean hasLiftOrRamp; @XmlElement(name = "HasHoist") protected Boolean hasHoist; @XmlElement(name = "Length") protected BigDecimal length; @XmlElement(name = "Width") protected BigDecimal width; @XmlElement(name = "Height") protected BigDecimal height; @XmlElement(name = "Weight") protected BigDecimal weight; @XmlElement(name = "Facilities") protected de.vdv.ojp20.siri.CompoundTrainStructure.Facilities facilities; /** * Gets the value of the trainElementCode property. * * @return * possible object is * {@link String } * */ public String getTrainElementCode() { return trainElementCode; } /** * Sets the value of the trainElementCode property. * * @param value * allowed object is * {@link String } * */ public void setTrainElementCode(String value) { this.trainElementCode = value; } /** * Gets the value of the trainElementType property. * * @return * possible object is * {@link TrainElementTypeEnumeration } * */ public TrainElementTypeEnumeration getTrainElementType() { return trainElementType; } /** * Sets the value of the trainElementType property. * * @param value * allowed object is * {@link TrainElementTypeEnumeration } * */ public void setTrainElementType(TrainElementTypeEnumeration value) { this.trainElementType = value; } /** * Gets the value of the vehicleNumber property. * * @return * possible object is * {@link String } * */ public String getVehicleNumber() { return vehicleNumber; } /** * Sets the value of the vehicleNumber property. * * @param value * allowed object is * {@link String } * */ public void setVehicleNumber(String value) { this.vehicleNumber = value; } /** * Gets the value of the fareClasses 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 fareClasses property.

* *

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

*
     * getFareClasses().add(newItem);
     * 
* * *

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

* * * @return * The value of the fareClasses property. */ public List getFareClasses() { if (fareClasses == null) { fareClasses = new ArrayList<>(); } return this.fareClasses; } /** * Gets the value of the name property. * * @return * possible object is * {@link NaturalLanguageStringStructure } * */ public NaturalLanguageStringStructure getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link NaturalLanguageStringStructure } * */ public void setName(NaturalLanguageStringStructure value) { this.name = value; } /** * Gets the value of the shortName property. * * @return * possible object is * {@link NaturalLanguageStringStructure } * */ public NaturalLanguageStringStructure getShortName() { return shortName; } /** * Sets the value of the shortName property. * * @param value * allowed object is * {@link NaturalLanguageStringStructure } * */ public void setShortName(NaturalLanguageStringStructure value) { this.shortName = 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 privateCode property. * * @return * possible object is * {@link String } * */ public String getPrivateCode() { return privateCode; } /** * Sets the value of the privateCode property. * * @param value * allowed object is * {@link String } * */ public void setPrivateCode(String value) { this.privateCode = value; } /** * Gets the value of the reversingDirection property. * * @return * possible object is * {@link Boolean } * */ public Boolean isReversingDirection() { return reversingDirection; } /** * Sets the value of the reversingDirection property. * * @param value * allowed object is * {@link Boolean } * */ public void setReversingDirection(Boolean value) { this.reversingDirection = value; } /** * Gets the value of the selfPropelled property. * * @return * possible object is * {@link Boolean } * */ public Boolean isSelfPropelled() { return selfPropelled; } /** * Sets the value of the selfPropelled property. * * @param value * allowed object is * {@link Boolean } * */ public void setSelfPropelled(Boolean value) { this.selfPropelled = value; } /** * Gets the value of the typeOfFuel property. * * @return * possible object is * {@link TypeOfFuelEnumeration } * */ public TypeOfFuelEnumeration getTypeOfFuel() { return typeOfFuel; } /** * Sets the value of the typeOfFuel property. * * @param value * allowed object is * {@link TypeOfFuelEnumeration } * */ public void setTypeOfFuel(TypeOfFuelEnumeration value) { this.typeOfFuel = value; } /** * Gets the value of the euroClass property. * * @return * possible object is * {@link String } * */ public String getEuroClass() { return euroClass; } /** * Sets the value of the euroClass property. * * @param value * allowed object is * {@link String } * */ public void setEuroClass(String value) { this.euroClass = value; } /** * Gets the value of the maximumPassengerCapacities property. * * @return * possible object is * {@link de.vdv.ojp20.siri.CompoundTrainStructure.MaximumPassengerCapacities } * */ public de.vdv.ojp20.siri.CompoundTrainStructure.MaximumPassengerCapacities getMaximumPassengerCapacities() { return maximumPassengerCapacities; } /** * Sets the value of the maximumPassengerCapacities property. * * @param value * allowed object is * {@link de.vdv.ojp20.siri.CompoundTrainStructure.MaximumPassengerCapacities } * */ public void setMaximumPassengerCapacities(de.vdv.ojp20.siri.CompoundTrainStructure.MaximumPassengerCapacities value) { this.maximumPassengerCapacities = value; } /** * Gets the value of the lowFloor property. * * @return * possible object is * {@link Boolean } * */ public Boolean isLowFloor() { return lowFloor; } /** * Sets the value of the lowFloor property. * * @param value * allowed object is * {@link Boolean } * */ public void setLowFloor(Boolean value) { this.lowFloor = value; } /** * Gets the value of the hasLiftOrRamp property. * * @return * possible object is * {@link Boolean } * */ public Boolean isHasLiftOrRamp() { return hasLiftOrRamp; } /** * Sets the value of the hasLiftOrRamp property. * * @param value * allowed object is * {@link Boolean } * */ public void setHasLiftOrRamp(Boolean value) { this.hasLiftOrRamp = value; } /** * Gets the value of the hasHoist property. * * @return * possible object is * {@link Boolean } * */ public Boolean isHasHoist() { return hasHoist; } /** * Sets the value of the hasHoist property. * * @param value * allowed object is * {@link Boolean } * */ public void setHasHoist(Boolean value) { this.hasHoist = value; } /** * Gets the value of the length property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getLength() { return length; } /** * Sets the value of the length property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setLength(BigDecimal value) { this.length = value; } /** * Gets the value of the width property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getWidth() { return width; } /** * Sets the value of the width property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setWidth(BigDecimal value) { this.width = value; } /** * Gets the value of the height property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getHeight() { return height; } /** * Sets the value of the height property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setHeight(BigDecimal value) { this.height = value; } /** * Gets the value of the weight property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getWeight() { return weight; } /** * Sets the value of the weight property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setWeight(BigDecimal value) { this.weight = value; } /** * Gets the value of the facilities property. * * @return * possible object is * {@link de.vdv.ojp20.siri.CompoundTrainStructure.Facilities } * */ public de.vdv.ojp20.siri.CompoundTrainStructure.Facilities getFacilities() { return facilities; } /** * Sets the value of the facilities property. * * @param value * allowed object is * {@link de.vdv.ojp20.siri.CompoundTrainStructure.Facilities } * */ public void setFacilities(de.vdv.ojp20.siri.CompoundTrainStructure.Facilities value) { this.facilities = value; } public TrainElementStructure withTrainElementCode(String value) { setTrainElementCode(value); return this; } public TrainElementStructure withTrainElementType(TrainElementTypeEnumeration value) { setTrainElementType(value); return this; } public TrainElementStructure withVehicleNumber(String value) { setVehicleNumber(value); return this; } public TrainElementStructure withFareClasses(FareClassEnumeration... values) { if (values!= null) { for (FareClassEnumeration value: values) { getFareClasses().add(value); } } return this; } public TrainElementStructure withFareClasses(Collection values) { if (values!= null) { getFareClasses().addAll(values); } return this; } public TrainElementStructure withName(NaturalLanguageStringStructure value) { setName(value); return this; } public TrainElementStructure withShortName(NaturalLanguageStringStructure value) { setShortName(value); return this; } public TrainElementStructure withDescription(NaturalLanguageStringStructure value) { setDescription(value); return this; } public TrainElementStructure withPrivateCode(String value) { setPrivateCode(value); return this; } public TrainElementStructure withReversingDirection(Boolean value) { setReversingDirection(value); return this; } public TrainElementStructure withSelfPropelled(Boolean value) { setSelfPropelled(value); return this; } public TrainElementStructure withTypeOfFuel(TypeOfFuelEnumeration value) { setTypeOfFuel(value); return this; } public TrainElementStructure withEuroClass(String value) { setEuroClass(value); return this; } public TrainElementStructure withMaximumPassengerCapacities(de.vdv.ojp20.siri.CompoundTrainStructure.MaximumPassengerCapacities value) { setMaximumPassengerCapacities(value); return this; } public TrainElementStructure withLowFloor(Boolean value) { setLowFloor(value); return this; } public TrainElementStructure withHasLiftOrRamp(Boolean value) { setHasLiftOrRamp(value); return this; } public TrainElementStructure withHasHoist(Boolean value) { setHasHoist(value); return this; } public TrainElementStructure withLength(BigDecimal value) { setLength(value); return this; } public TrainElementStructure withWidth(BigDecimal value) { setWidth(value); return this; } public TrainElementStructure withHeight(BigDecimal value) { setHeight(value); return this; } public TrainElementStructure withWeight(BigDecimal value) { setWeight(value); return this; } public TrainElementStructure withFacilities(de.vdv.ojp20.siri.CompoundTrainStructure.Facilities value) { setFacilities(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