
de.vdv.ojp20.siri.AffectedNetworkStructure Maven / Gradle / Ivy
Show all versions of ojp-java-model Show documentation
//
// 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.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.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import uk.org.ifopt.ifopt.AccessModesEnumeration;
/**
* Java class for AffectedNetworkStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AffectedNetworkStructure", propOrder = {
"affectedOperator",
"networkRef",
"networkName",
"routesAffected",
"vehicleMode",
"airSubmode",
"busSubmode",
"coachSubmode",
"metroSubmode",
"railSubmode",
"tramSubmode",
"waterSubmode",
"telecabinSubmode",
"accessMode",
"allLines",
"selectedRoutes",
"affectedSection",
"affectedLine",
"extensions"
})
@XmlSeeAlso({
de.vdv.ojp20.siri.AffectsScopeStructure.Networks.AffectedNetwork.class
})
public class AffectedNetworkStructure {
@XmlElement(name = "AffectedOperator")
protected List affectedOperator;
@XmlElement(name = "NetworkRef")
protected NetworkRefStructure networkRef;
@XmlElement(name = "NetworkName")
protected List networkName;
@XmlElement(name = "RoutesAffected")
protected List routesAffected;
@XmlElement(name = "VehicleMode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected VehicleModesOfTransportEnumeration vehicleMode;
@XmlElement(name = "AirSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected AirSubmodesOfTransportEnumeration airSubmode;
@XmlElement(name = "BusSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected BusSubmodesOfTransportEnumeration busSubmode;
@XmlElement(name = "CoachSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected CoachSubmodesOfTransportEnumeration coachSubmode;
@XmlElement(name = "MetroSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected MetroSubmodesOfTransportEnumeration metroSubmode;
@XmlElement(name = "RailSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected RailSubmodesOfTransportEnumeration railSubmode;
@XmlElement(name = "TramSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected TramSubmodesOfTransportEnumeration tramSubmode;
@XmlElement(name = "WaterSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected WaterSubmodesOfTransportEnumeration waterSubmode;
@XmlElement(name = "TelecabinSubmode", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected TelecabinSubmodesOfTransportEnumeration telecabinSubmode;
@XmlElement(name = "AccessMode")
@XmlSchemaType(name = "string")
protected AccessModesEnumeration accessMode;
@XmlElement(name = "AllLines")
protected String allLines;
@XmlElement(name = "SelectedRoutes")
protected List selectedRoutes;
@XmlElement(name = "AffectedSection")
protected List affectedSection;
@XmlElement(name = "AffectedLine")
protected List affectedLine;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the affectedOperator 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 affectedOperator property.
*
*
* For example, to add a new item, do as follows:
*
*
* getAffectedOperator().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AffectedOperatorStructure }
*
*
*
* @return
* The value of the affectedOperator property.
*/
public List getAffectedOperator() {
if (affectedOperator == null) {
affectedOperator = new ArrayList<>();
}
return this.affectedOperator;
}
/**
* Gets the value of the networkRef property.
*
* @return
* possible object is
* {@link NetworkRefStructure }
*
*/
public NetworkRefStructure getNetworkRef() {
return networkRef;
}
/**
* Sets the value of the networkRef property.
*
* @param value
* allowed object is
* {@link NetworkRefStructure }
*
*/
public void setNetworkRef(NetworkRefStructure value) {
this.networkRef = value;
}
/**
* Gets the value of the networkName 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 networkName property.
*
*
* For example, to add a new item, do as follows:
*
*
* getNetworkName().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*
* @return
* The value of the networkName property.
*/
public List getNetworkName() {
if (networkName == null) {
networkName = new ArrayList<>();
}
return this.networkName;
}
/**
* Gets the value of the routesAffected 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 routesAffected property.
*
*
* For example, to add a new item, do as follows:
*
*
* getRoutesAffected().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*
* @return
* The value of the routesAffected property.
*/
public List getRoutesAffected() {
if (routesAffected == null) {
routesAffected = new ArrayList<>();
}
return this.routesAffected;
}
/**
* Gets the value of the vehicleMode property.
*
* @return
* possible object is
* {@link VehicleModesOfTransportEnumeration }
*
*/
public VehicleModesOfTransportEnumeration getVehicleMode() {
return vehicleMode;
}
/**
* Sets the value of the vehicleMode property.
*
* @param value
* allowed object is
* {@link VehicleModesOfTransportEnumeration }
*
*/
public void setVehicleMode(VehicleModesOfTransportEnumeration value) {
this.vehicleMode = 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 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 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 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 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;
}
/**
* 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 accessMode property.
*
* @return
* possible object is
* {@link AccessModesEnumeration }
*
*/
public AccessModesEnumeration getAccessMode() {
return accessMode;
}
/**
* Sets the value of the accessMode property.
*
* @param value
* allowed object is
* {@link AccessModesEnumeration }
*
*/
public void setAccessMode(AccessModesEnumeration value) {
this.accessMode = value;
}
/**
* Gets the value of the allLines property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAllLines() {
return allLines;
}
/**
* Sets the value of the allLines property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAllLines(String value) {
this.allLines = value;
}
/**
* Gets the value of the selectedRoutes 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 selectedRoutes property.
*
*
* For example, to add a new item, do as follows:
*
*
* getSelectedRoutes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AffectedRouteStructure }
*
*
*
* @return
* The value of the selectedRoutes property.
*/
public List getSelectedRoutes() {
if (selectedRoutes == null) {
selectedRoutes = new ArrayList<>();
}
return this.selectedRoutes;
}
/**
* Gets the value of the affectedSection 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 affectedSection property.
*
*
* For example, to add a new item, do as follows:
*
*
* getAffectedSection().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AffectedSectionStructure }
*
*
*
* @return
* The value of the affectedSection property.
*/
public List getAffectedSection() {
if (affectedSection == null) {
affectedSection = new ArrayList<>();
}
return this.affectedSection;
}
/**
* Gets the value of the affectedLine 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 affectedLine property.
*
*
* For example, to add a new item, do as follows:
*
*
* getAffectedLine().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AffectedLineStructure }
*
*
*
* @return
* The value of the affectedLine property.
*/
public List getAffectedLine() {
if (affectedLine == null) {
affectedLine = new ArrayList<>();
}
return this.affectedLine;
}
/**
* Gets the value of the extensions property.
*
* @return
* possible object is
* {@link ExtensionsStructure }
*
*/
public ExtensionsStructure getExtensions() {
return extensions;
}
/**
* Sets the value of the extensions property.
*
* @param value
* allowed object is
* {@link ExtensionsStructure }
*
*/
public void setExtensions(ExtensionsStructure value) {
this.extensions = value;
}
public AffectedNetworkStructure withAffectedOperator(AffectedOperatorStructure... values) {
if (values!= null) {
for (AffectedOperatorStructure value: values) {
getAffectedOperator().add(value);
}
}
return this;
}
public AffectedNetworkStructure withAffectedOperator(Collection values) {
if (values!= null) {
getAffectedOperator().addAll(values);
}
return this;
}
public AffectedNetworkStructure withNetworkRef(NetworkRefStructure value) {
setNetworkRef(value);
return this;
}
public AffectedNetworkStructure withNetworkName(NaturalLanguageStringStructure... values) {
if (values!= null) {
for (NaturalLanguageStringStructure value: values) {
getNetworkName().add(value);
}
}
return this;
}
public AffectedNetworkStructure withNetworkName(Collection values) {
if (values!= null) {
getNetworkName().addAll(values);
}
return this;
}
public AffectedNetworkStructure withRoutesAffected(NaturalLanguageStringStructure... values) {
if (values!= null) {
for (NaturalLanguageStringStructure value: values) {
getRoutesAffected().add(value);
}
}
return this;
}
public AffectedNetworkStructure withRoutesAffected(Collection values) {
if (values!= null) {
getRoutesAffected().addAll(values);
}
return this;
}
public AffectedNetworkStructure withVehicleMode(VehicleModesOfTransportEnumeration value) {
setVehicleMode(value);
return this;
}
public AffectedNetworkStructure withAirSubmode(AirSubmodesOfTransportEnumeration value) {
setAirSubmode(value);
return this;
}
public AffectedNetworkStructure withBusSubmode(BusSubmodesOfTransportEnumeration value) {
setBusSubmode(value);
return this;
}
public AffectedNetworkStructure withCoachSubmode(CoachSubmodesOfTransportEnumeration value) {
setCoachSubmode(value);
return this;
}
public AffectedNetworkStructure withMetroSubmode(MetroSubmodesOfTransportEnumeration value) {
setMetroSubmode(value);
return this;
}
public AffectedNetworkStructure withRailSubmode(RailSubmodesOfTransportEnumeration value) {
setRailSubmode(value);
return this;
}
public AffectedNetworkStructure withTramSubmode(TramSubmodesOfTransportEnumeration value) {
setTramSubmode(value);
return this;
}
public AffectedNetworkStructure withWaterSubmode(WaterSubmodesOfTransportEnumeration value) {
setWaterSubmode(value);
return this;
}
public AffectedNetworkStructure withTelecabinSubmode(TelecabinSubmodesOfTransportEnumeration value) {
setTelecabinSubmode(value);
return this;
}
public AffectedNetworkStructure withAccessMode(AccessModesEnumeration value) {
setAccessMode(value);
return this;
}
public AffectedNetworkStructure withAllLines(String value) {
setAllLines(value);
return this;
}
public AffectedNetworkStructure withSelectedRoutes(AffectedRouteStructure... values) {
if (values!= null) {
for (AffectedRouteStructure value: values) {
getSelectedRoutes().add(value);
}
}
return this;
}
public AffectedNetworkStructure withSelectedRoutes(Collection values) {
if (values!= null) {
getSelectedRoutes().addAll(values);
}
return this;
}
public AffectedNetworkStructure withAffectedSection(AffectedSectionStructure... values) {
if (values!= null) {
for (AffectedSectionStructure value: values) {
getAffectedSection().add(value);
}
}
return this;
}
public AffectedNetworkStructure withAffectedSection(Collection values) {
if (values!= null) {
getAffectedSection().addAll(values);
}
return this;
}
public AffectedNetworkStructure withAffectedLine(AffectedLineStructure... values) {
if (values!= null) {
for (AffectedLineStructure value: values) {
getAffectedLine().add(value);
}
}
return this;
}
public AffectedNetworkStructure withAffectedLine(Collection values) {
if (values!= null) {
getAffectedLine().addAll(values);
}
return this;
}
public AffectedNetworkStructure withExtensions(ExtensionsStructure value) {
setExtensions(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);
}
}