
de.vdv.ojp20.siri.AffectedInterchangeStructure 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.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Java class for AffectedInterchangeStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AffectedInterchangeStructure", propOrder = {
"interchangeRef",
"interchangeStopPointRef",
"interchangeStopPointName",
"connectingVehicleJourneyRef",
"interchangeStatusType",
"connectionLink",
"extensions"
})
public class AffectedInterchangeStructure {
@XmlElement(name = "InterchangeRef")
protected InterchangeRefStructure interchangeRef;
@XmlElement(name = "InterchangeStopPointRef")
protected StopPointRefStructure interchangeStopPointRef;
@XmlElement(name = "InterchangeStopPointName")
protected List interchangeStopPointName;
@XmlElement(name = "ConnectingVehicleJourneyRef")
protected DatedVehicleJourneyRefStructure connectingVehicleJourneyRef;
@XmlElement(name = "InterchangeStatusType", defaultValue = "unknown")
@XmlSchemaType(name = "NMTOKEN")
protected InterchangeStatusEnumeration interchangeStatusType;
@XmlElement(name = "ConnectionLink")
protected List connectionLink;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the interchangeRef property.
*
* @return
* possible object is
* {@link InterchangeRefStructure }
*
*/
public InterchangeRefStructure getInterchangeRef() {
return interchangeRef;
}
/**
* Sets the value of the interchangeRef property.
*
* @param value
* allowed object is
* {@link InterchangeRefStructure }
*
*/
public void setInterchangeRef(InterchangeRefStructure value) {
this.interchangeRef = value;
}
/**
* Gets the value of the interchangeStopPointRef property.
*
* @return
* possible object is
* {@link StopPointRefStructure }
*
*/
public StopPointRefStructure getInterchangeStopPointRef() {
return interchangeStopPointRef;
}
/**
* Sets the value of the interchangeStopPointRef property.
*
* @param value
* allowed object is
* {@link StopPointRefStructure }
*
*/
public void setInterchangeStopPointRef(StopPointRefStructure value) {
this.interchangeStopPointRef = value;
}
/**
* Gets the value of the interchangeStopPointName 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 interchangeStopPointName property.
*
*
* For example, to add a new item, do as follows:
*
*
* getInterchangeStopPointName().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*
* @return
* The value of the interchangeStopPointName property.
*/
public List getInterchangeStopPointName() {
if (interchangeStopPointName == null) {
interchangeStopPointName = new ArrayList<>();
}
return this.interchangeStopPointName;
}
/**
* Gets the value of the connectingVehicleJourneyRef property.
*
* @return
* possible object is
* {@link DatedVehicleJourneyRefStructure }
*
*/
public DatedVehicleJourneyRefStructure getConnectingVehicleJourneyRef() {
return connectingVehicleJourneyRef;
}
/**
* Sets the value of the connectingVehicleJourneyRef property.
*
* @param value
* allowed object is
* {@link DatedVehicleJourneyRefStructure }
*
*/
public void setConnectingVehicleJourneyRef(DatedVehicleJourneyRefStructure value) {
this.connectingVehicleJourneyRef = value;
}
/**
* Gets the value of the interchangeStatusType property.
*
* @return
* possible object is
* {@link InterchangeStatusEnumeration }
*
*/
public InterchangeStatusEnumeration getInterchangeStatusType() {
return interchangeStatusType;
}
/**
* Sets the value of the interchangeStatusType property.
*
* @param value
* allowed object is
* {@link InterchangeStatusEnumeration }
*
*/
public void setInterchangeStatusType(InterchangeStatusEnumeration value) {
this.interchangeStatusType = value;
}
/**
* Gets the value of the connectionLink 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 connectionLink property.
*
*
* For example, to add a new item, do as follows:
*
*
* getConnectionLink().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AffectedConnectionLinkStructure }
*
*
*
* @return
* The value of the connectionLink property.
*/
public List getConnectionLink() {
if (connectionLink == null) {
connectionLink = new ArrayList<>();
}
return this.connectionLink;
}
/**
* 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 AffectedInterchangeStructure withInterchangeRef(InterchangeRefStructure value) {
setInterchangeRef(value);
return this;
}
public AffectedInterchangeStructure withInterchangeStopPointRef(StopPointRefStructure value) {
setInterchangeStopPointRef(value);
return this;
}
public AffectedInterchangeStructure withInterchangeStopPointName(NaturalLanguageStringStructure... values) {
if (values!= null) {
for (NaturalLanguageStringStructure value: values) {
getInterchangeStopPointName().add(value);
}
}
return this;
}
public AffectedInterchangeStructure withInterchangeStopPointName(Collection values) {
if (values!= null) {
getInterchangeStopPointName().addAll(values);
}
return this;
}
public AffectedInterchangeStructure withConnectingVehicleJourneyRef(DatedVehicleJourneyRefStructure value) {
setConnectingVehicleJourneyRef(value);
return this;
}
public AffectedInterchangeStructure withInterchangeStatusType(InterchangeStatusEnumeration value) {
setInterchangeStatusType(value);
return this;
}
public AffectedInterchangeStructure withConnectionLink(AffectedConnectionLinkStructure... values) {
if (values!= null) {
for (AffectedConnectionLinkStructure value: values) {
getConnectionLink().add(value);
}
}
return this;
}
public AffectedInterchangeStructure withConnectionLink(Collection values) {
if (values!= null) {
getConnectionLink().addAll(values);
}
return this;
}
public AffectedInterchangeStructure 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);
}
}