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

de.vdv.ojp20.siri.TrainStructure 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.XmlElements;
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 TrainStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TrainStructure", propOrder = { "trainCode", "name", "shortName", "description", "privateCode", "reversingDirection", "selfPropelled", "typeOfFuel", "euroClass", "maximumPassengerCapacities", "lowFloor", "hasLiftOrRamp", "hasHoist", "length", "width", "height", "weight", "facilities", "numberOfCars", "trainSizeType", "trainComponents" }) public class TrainStructure { @XmlElement(name = "TrainCode") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String trainCode; @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; @XmlElement(name = "NumberOfCars") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger numberOfCars; @XmlElement(name = "TrainSizeType", defaultValue = "normal") @XmlSchemaType(name = "NMTOKEN") protected TrainSizeEnumeration trainSizeType; @XmlElement(name = "TrainComponents") protected TrainStructure.TrainComponents trainComponents; /** * Gets the value of the trainCode property. * * @return * possible object is * {@link String } * */ public String getTrainCode() { return trainCode; } /** * Sets the value of the trainCode property. * * @param value * allowed object is * {@link String } * */ public void setTrainCode(String value) { this.trainCode = value; } /** * 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; } /** * Gets the value of the numberOfCars property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getNumberOfCars() { return numberOfCars; } /** * Sets the value of the numberOfCars property. * * @param value * allowed object is * {@link BigInteger } * */ public void setNumberOfCars(BigInteger value) { this.numberOfCars = value; } /** * Gets the value of the trainSizeType property. * * @return * possible object is * {@link TrainSizeEnumeration } * */ public TrainSizeEnumeration getTrainSizeType() { return trainSizeType; } /** * Sets the value of the trainSizeType property. * * @param value * allowed object is * {@link TrainSizeEnumeration } * */ public void setTrainSizeType(TrainSizeEnumeration value) { this.trainSizeType = value; } /** * Gets the value of the trainComponents property. * * @return * possible object is * {@link TrainStructure.TrainComponents } * */ public TrainStructure.TrainComponents getTrainComponents() { return trainComponents; } /** * Sets the value of the trainComponents property. * * @param value * allowed object is * {@link TrainStructure.TrainComponents } * */ public void setTrainComponents(TrainStructure.TrainComponents value) { this.trainComponents = value; } public TrainStructure withTrainCode(String value) { setTrainCode(value); return this; } public TrainStructure withName(NaturalLanguageStringStructure value) { setName(value); return this; } public TrainStructure withShortName(NaturalLanguageStringStructure value) { setShortName(value); return this; } public TrainStructure withDescription(NaturalLanguageStringStructure value) { setDescription(value); return this; } public TrainStructure withPrivateCode(String value) { setPrivateCode(value); return this; } public TrainStructure withReversingDirection(Boolean value) { setReversingDirection(value); return this; } public TrainStructure withSelfPropelled(Boolean value) { setSelfPropelled(value); return this; } public TrainStructure withTypeOfFuel(TypeOfFuelEnumeration value) { setTypeOfFuel(value); return this; } public TrainStructure withEuroClass(String value) { setEuroClass(value); return this; } public TrainStructure withMaximumPassengerCapacities(de.vdv.ojp20.siri.CompoundTrainStructure.MaximumPassengerCapacities value) { setMaximumPassengerCapacities(value); return this; } public TrainStructure withLowFloor(Boolean value) { setLowFloor(value); return this; } public TrainStructure withHasLiftOrRamp(Boolean value) { setHasLiftOrRamp(value); return this; } public TrainStructure withHasHoist(Boolean value) { setHasHoist(value); return this; } public TrainStructure withLength(BigDecimal value) { setLength(value); return this; } public TrainStructure withWidth(BigDecimal value) { setWidth(value); return this; } public TrainStructure withHeight(BigDecimal value) { setHeight(value); return this; } public TrainStructure withWeight(BigDecimal value) { setWeight(value); return this; } public TrainStructure withFacilities(de.vdv.ojp20.siri.CompoundTrainStructure.Facilities value) { setFacilities(value); return this; } public TrainStructure withNumberOfCars(BigInteger value) { setNumberOfCars(value); return this; } public TrainStructure withTrainSizeType(TrainSizeEnumeration value) { setTrainSizeType(value); return this; } public TrainStructure withTrainComponents(TrainStructure.TrainComponents value) { setTrainComponents(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 = { "trainComponentRefOrTrainComponent" }) public static class TrainComponents { @XmlElements({ @XmlElement(name = "TrainComponentRef", type = TrainComponentRefStructure.class), @XmlElement(name = "TrainComponent", type = TrainComponentStructure.class) }) protected List trainComponentRefOrTrainComponent; /** * Gets the value of the trainComponentRefOrTrainComponent 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 trainComponentRefOrTrainComponent property.

* *

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

*
         * getTrainComponentRefOrTrainComponent().add(newItem);
         * 
* * *

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

* * * @return * The value of the trainComponentRefOrTrainComponent property. */ public List getTrainComponentRefOrTrainComponent() { if (trainComponentRefOrTrainComponent == null) { trainComponentRefOrTrainComponent = new ArrayList<>(); } return this.trainComponentRefOrTrainComponent; } public TrainStructure.TrainComponents withTrainComponentRefOrTrainComponent(Object... values) { if (values!= null) { for (Object value: values) { getTrainComponentRefOrTrainComponent().add(value); } } return this; } public TrainStructure.TrainComponents withTrainComponentRefOrTrainComponent(Collection values) { if (values!= null) { getTrainComponentRefOrTrainComponent().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); } } }