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

uk.org.siri.siri21.TrainElement Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2025.01.07 at 02:19:41 PM UTC 
//


package uk.org.siri.siri21;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
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.XmlElements;
import jakarta.xml.bind.annotation.XmlList;
import jakarta.xml.bind.annotation.XmlRootElement;
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;


/**
 * Type for TRAIN ELEMENT. (since SIRI 2.1)
 * 
 * 

Java class for TrainElementStructure complex type. * *

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

 * <complexType name="TrainElementStructure">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="TrainElementCode" type="{http://www.siri.org.uk/siri}TrainElementCodeType"/>
 *         <group ref="{http://www.siri.org.uk/siri}TrainElementGroup"/>
 *         <group ref="{http://www.siri.org.uk/siri}VehicleTypeGroup"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @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" }) @XmlRootElement(name = "TrainElement") public class TrainElement implements Serializable { @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 TrainElement.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 TrainElement.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 Jakarta XML Binding 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 } * * */ 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 TrainElement.MaximumPassengerCapacities } * */ public TrainElement.MaximumPassengerCapacities getMaximumPassengerCapacities() { return maximumPassengerCapacities; } /** * Sets the value of the maximumPassengerCapacities property. * * @param value * allowed object is * {@link TrainElement.MaximumPassengerCapacities } * */ public void setMaximumPassengerCapacities(TrainElement.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 TrainElement.Facilities } * */ public TrainElement.Facilities getFacilities() { return facilities; } /** * Sets the value of the facilities property. * * @param value * allowed object is * {@link TrainElement.Facilities } * */ public void setFacilities(TrainElement.Facilities value) { this.facilities = value; } /** *

Java class for anonymous complex type. * *

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <choice maxOccurs="unbounded">
     *           <element ref="{http://www.siri.org.uk/siri}VehicleFeature"/>
     *           <element name="Facility" type="{http://www.siri.org.uk/siri}FacilityStructure"/>
     *           <element ref="{http://www.siri.org.uk/siri}FacilityRef"/>
     *         </choice>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "vehicleFeaturesAndFacilitiesAndFacilityReves" }) public static class Facilities implements Serializable { @XmlElements({ @XmlElement(name = "VehicleFeature", type = VehicleFeature.class), @XmlElement(name = "Facility", type = FacilityStructure.class), @XmlElement(name = "FacilityRef", type = FacilityRef.class) }) protected List vehicleFeaturesAndFacilitiesAndFacilityReves; /** * Gets the value of the vehicleFeaturesAndFacilitiesAndFacilityReves 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 Jakarta XML Binding object. * This is why there is not a set method for the vehicleFeaturesAndFacilitiesAndFacilityReves property. * *

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

         *    getVehicleFeaturesAndFacilitiesAndFacilityReves().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FacilityRef } * {@link FacilityStructure } * {@link VehicleFeature } * * */ public List getVehicleFeaturesAndFacilitiesAndFacilityReves() { if (vehicleFeaturesAndFacilitiesAndFacilityReves == null) { vehicleFeaturesAndFacilitiesAndFacilityReves = new ArrayList(); } return this.vehicleFeaturesAndFacilitiesAndFacilityReves; } } /** *

Java class for anonymous complex type. * *

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="MaximumPassengerCapacity" type="{http://www.siri.org.uk/siri}PassengerCapacityStructure" maxOccurs="unbounded"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "maximumPassengerCapacities" }) public static class MaximumPassengerCapacities implements Serializable { @XmlElement(name = "MaximumPassengerCapacity", required = true) protected List maximumPassengerCapacities; /** * Gets the value of the maximumPassengerCapacities 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 Jakarta XML Binding object. * This is why there is not a set method for the maximumPassengerCapacities property. * *

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

         *    getMaximumPassengerCapacities().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PassengerCapacityStructure } * * */ public List getMaximumPassengerCapacities() { if (maximumPassengerCapacities == null) { maximumPassengerCapacities = new ArrayList(); } return this.maximumPassengerCapacities; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy