
de.vdv.ojp20.ModeStructure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ojp-java-model Show documentation
Show all versions of ojp-java-model Show documentation
Generates Java model from OJP xsds using jaxb.
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;
import de.vdv.ojp20.siri.AirSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.BusSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.CoachSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.FunicularSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.MetroSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.RailSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.TelecabinSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.TramSubmodesOfTransportEnumeration;
import de.vdv.ojp20.siri.VehicleModesOfTransportEnumeration;
import de.vdv.ojp20.siri.WaterSubmodesOfTransportEnumeration;
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;
/**
* [a specialisation of MODE in TMv6] an extended range of VEHICLE MODEs, aggregating them with some SUBMODEs
*
* Java class for ModeStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ModeStructure", propOrder = {
"ptMode",
"airSubmode",
"busSubmode",
"coachSubmode",
"funicularSubmode",
"metroSubmode",
"tramSubmode",
"telecabinSubmode",
"railSubmode",
"waterSubmode",
"name",
"shortName",
"description"
})
public class ModeStructure {
/**
* Categorisation of a (conventional) PUBLIC TRANSPORT MODE. We use the SIRI 2.1 element which allows for many values in the enumeration. In OJP we don't use the following enumeration values: "pti1_xxx", "xxxServices" when a value without the "Service" exists for the same MODE, "allServicesExcept", "selfDrive", "taxi". Also, in cases where only a "xxxService" exists in the enumeration, it should be avoided. "other" or "unknown" should only be used if no other value applies.
*
*/
@XmlElement(name = "PtMode", required = true)
@XmlSchemaType(name = "NMTOKEN")
protected VehicleModesOfTransportEnumeration ptMode;
@XmlElement(name = "AirSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected AirSubmodesOfTransportEnumeration airSubmode;
@XmlElement(name = "BusSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected BusSubmodesOfTransportEnumeration busSubmode;
@XmlElement(name = "CoachSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected CoachSubmodesOfTransportEnumeration coachSubmode;
@XmlElement(name = "FunicularSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected FunicularSubmodesOfTransportEnumeration funicularSubmode;
@XmlElement(name = "MetroSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected MetroSubmodesOfTransportEnumeration metroSubmode;
@XmlElement(name = "TramSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected TramSubmodesOfTransportEnumeration tramSubmode;
@XmlElement(name = "TelecabinSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected TelecabinSubmodesOfTransportEnumeration telecabinSubmode;
@XmlElement(name = "RailSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected RailSubmodesOfTransportEnumeration railSubmode;
@XmlElement(name = "WaterSubmode", namespace = "http://www.siri.org.uk/siri", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected WaterSubmodesOfTransportEnumeration waterSubmode;
/**
* Name of the mode.
*
*/
@XmlElement(name = "Name")
protected InternationalTextStructure name;
/**
* Short name or acronym of the mode.
*
*/
@XmlElement(name = "ShortName")
protected InternationalTextStructure shortName;
/**
* Additional text that further describes the mode.
*
*/
@XmlElement(name = "Description")
protected InternationalTextStructure description;
/**
* Categorisation of a (conventional) PUBLIC TRANSPORT MODE. We use the SIRI 2.1 element which allows for many values in the enumeration. In OJP we don't use the following enumeration values: "pti1_xxx", "xxxServices" when a value without the "Service" exists for the same MODE, "allServicesExcept", "selfDrive", "taxi". Also, in cases where only a "xxxService" exists in the enumeration, it should be avoided. "other" or "unknown" should only be used if no other value applies.
*
* @return
* possible object is
* {@link VehicleModesOfTransportEnumeration }
*
*/
public VehicleModesOfTransportEnumeration getPtMode() {
return ptMode;
}
/**
* Sets the value of the ptMode property.
*
* @param value
* allowed object is
* {@link VehicleModesOfTransportEnumeration }
*
* @see #getPtMode()
*/
public void setPtMode(VehicleModesOfTransportEnumeration value) {
this.ptMode = value;
}
/**
* Gets the value of the airSubmode property.
*
* @return
* possible object is
* {@link AirSubmodesOfTransportEnumeration }
*
*/
public AirSubmodesOfTransportEnumeration getAirSubmode() {
return airSubmode;
}
/**
* Sets the value of the airSubmode property.
*
* @param value
* allowed object is
* {@link AirSubmodesOfTransportEnumeration }
*
*/
public void setAirSubmode(AirSubmodesOfTransportEnumeration value) {
this.airSubmode = value;
}
/**
* Gets the value of the busSubmode property.
*
* @return
* possible object is
* {@link BusSubmodesOfTransportEnumeration }
*
*/
public BusSubmodesOfTransportEnumeration getBusSubmode() {
return busSubmode;
}
/**
* Sets the value of the busSubmode property.
*
* @param value
* allowed object is
* {@link BusSubmodesOfTransportEnumeration }
*
*/
public void setBusSubmode(BusSubmodesOfTransportEnumeration value) {
this.busSubmode = value;
}
/**
* Gets the value of the coachSubmode property.
*
* @return
* possible object is
* {@link CoachSubmodesOfTransportEnumeration }
*
*/
public CoachSubmodesOfTransportEnumeration getCoachSubmode() {
return coachSubmode;
}
/**
* Sets the value of the coachSubmode property.
*
* @param value
* allowed object is
* {@link CoachSubmodesOfTransportEnumeration }
*
*/
public void setCoachSubmode(CoachSubmodesOfTransportEnumeration value) {
this.coachSubmode = value;
}
/**
* Gets the value of the funicularSubmode property.
*
* @return
* possible object is
* {@link FunicularSubmodesOfTransportEnumeration }
*
*/
public FunicularSubmodesOfTransportEnumeration getFunicularSubmode() {
return funicularSubmode;
}
/**
* Sets the value of the funicularSubmode property.
*
* @param value
* allowed object is
* {@link FunicularSubmodesOfTransportEnumeration }
*
*/
public void setFunicularSubmode(FunicularSubmodesOfTransportEnumeration value) {
this.funicularSubmode = value;
}
/**
* Gets the value of the metroSubmode property.
*
* @return
* possible object is
* {@link MetroSubmodesOfTransportEnumeration }
*
*/
public MetroSubmodesOfTransportEnumeration getMetroSubmode() {
return metroSubmode;
}
/**
* Sets the value of the metroSubmode property.
*
* @param value
* allowed object is
* {@link MetroSubmodesOfTransportEnumeration }
*
*/
public void setMetroSubmode(MetroSubmodesOfTransportEnumeration value) {
this.metroSubmode = value;
}
/**
* Gets the value of the tramSubmode property.
*
* @return
* possible object is
* {@link TramSubmodesOfTransportEnumeration }
*
*/
public TramSubmodesOfTransportEnumeration getTramSubmode() {
return tramSubmode;
}
/**
* Sets the value of the tramSubmode property.
*
* @param value
* allowed object is
* {@link TramSubmodesOfTransportEnumeration }
*
*/
public void setTramSubmode(TramSubmodesOfTransportEnumeration value) {
this.tramSubmode = value;
}
/**
* Gets the value of the telecabinSubmode property.
*
* @return
* possible object is
* {@link TelecabinSubmodesOfTransportEnumeration }
*
*/
public TelecabinSubmodesOfTransportEnumeration getTelecabinSubmode() {
return telecabinSubmode;
}
/**
* Sets the value of the telecabinSubmode property.
*
* @param value
* allowed object is
* {@link TelecabinSubmodesOfTransportEnumeration }
*
*/
public void setTelecabinSubmode(TelecabinSubmodesOfTransportEnumeration value) {
this.telecabinSubmode = value;
}
/**
* Gets the value of the railSubmode property.
*
* @return
* possible object is
* {@link RailSubmodesOfTransportEnumeration }
*
*/
public RailSubmodesOfTransportEnumeration getRailSubmode() {
return railSubmode;
}
/**
* Sets the value of the railSubmode property.
*
* @param value
* allowed object is
* {@link RailSubmodesOfTransportEnumeration }
*
*/
public void setRailSubmode(RailSubmodesOfTransportEnumeration value) {
this.railSubmode = value;
}
/**
* Gets the value of the waterSubmode property.
*
* @return
* possible object is
* {@link WaterSubmodesOfTransportEnumeration }
*
*/
public WaterSubmodesOfTransportEnumeration getWaterSubmode() {
return waterSubmode;
}
/**
* Sets the value of the waterSubmode property.
*
* @param value
* allowed object is
* {@link WaterSubmodesOfTransportEnumeration }
*
*/
public void setWaterSubmode(WaterSubmodesOfTransportEnumeration value) {
this.waterSubmode = value;
}
/**
* Name of the mode.
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getName()
*/
public void setName(InternationalTextStructure value) {
this.name = value;
}
/**
* Short name or acronym of the mode.
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getShortName() {
return shortName;
}
/**
* Sets the value of the shortName property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getShortName()
*/
public void setShortName(InternationalTextStructure value) {
this.shortName = value;
}
/**
* Additional text that further describes the mode.
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getDescription()
*/
public void setDescription(InternationalTextStructure value) {
this.description = value;
}
public ModeStructure withPtMode(VehicleModesOfTransportEnumeration value) {
setPtMode(value);
return this;
}
public ModeStructure withAirSubmode(AirSubmodesOfTransportEnumeration value) {
setAirSubmode(value);
return this;
}
public ModeStructure withBusSubmode(BusSubmodesOfTransportEnumeration value) {
setBusSubmode(value);
return this;
}
public ModeStructure withCoachSubmode(CoachSubmodesOfTransportEnumeration value) {
setCoachSubmode(value);
return this;
}
public ModeStructure withFunicularSubmode(FunicularSubmodesOfTransportEnumeration value) {
setFunicularSubmode(value);
return this;
}
public ModeStructure withMetroSubmode(MetroSubmodesOfTransportEnumeration value) {
setMetroSubmode(value);
return this;
}
public ModeStructure withTramSubmode(TramSubmodesOfTransportEnumeration value) {
setTramSubmode(value);
return this;
}
public ModeStructure withTelecabinSubmode(TelecabinSubmodesOfTransportEnumeration value) {
setTelecabinSubmode(value);
return this;
}
public ModeStructure withRailSubmode(RailSubmodesOfTransportEnumeration value) {
setRailSubmode(value);
return this;
}
public ModeStructure withWaterSubmode(WaterSubmodesOfTransportEnumeration value) {
setWaterSubmode(value);
return this;
}
public ModeStructure withName(InternationalTextStructure value) {
setName(value);
return this;
}
public ModeStructure withShortName(InternationalTextStructure value) {
setShortName(value);
return this;
}
public ModeStructure withDescription(InternationalTextStructure value) {
setDescription(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