
de.vdv.ojp20.siri.AffectedRouteStructure 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.XmlElements;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import uk.org.ifopt.ifopt.LinkProjectionStructure;
/**
* Java class for AffectedRouteStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AffectedRouteStructure", propOrder = {
"routeRef",
"direction",
"sections",
"stopPoints",
"routeLinks",
"extensions"
})
public class AffectedRouteStructure {
@XmlElement(name = "RouteRef")
protected RouteRefStructure routeRef;
@XmlElement(name = "Direction")
protected List direction;
@XmlElement(name = "Sections")
protected AffectedRouteStructure.Sections sections;
@XmlElement(name = "StopPoints")
protected AffectedRouteStructure.StopPoints stopPoints;
@XmlElement(name = "RouteLinks")
protected AffectedRouteStructure.RouteLinks routeLinks;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the routeRef property.
*
* @return
* possible object is
* {@link RouteRefStructure }
*
*/
public RouteRefStructure getRouteRef() {
return routeRef;
}
/**
* Sets the value of the routeRef property.
*
* @param value
* allowed object is
* {@link RouteRefStructure }
*
*/
public void setRouteRef(RouteRefStructure value) {
this.routeRef = value;
}
/**
* Gets the value of the direction 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 direction property.
*
*
* For example, to add a new item, do as follows:
*
*
* getDirection().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DirectionStructure }
*
*
*
* @return
* The value of the direction property.
*/
public List getDirection() {
if (direction == null) {
direction = new ArrayList<>();
}
return this.direction;
}
/**
* Gets the value of the sections property.
*
* @return
* possible object is
* {@link AffectedRouteStructure.Sections }
*
*/
public AffectedRouteStructure.Sections getSections() {
return sections;
}
/**
* Sets the value of the sections property.
*
* @param value
* allowed object is
* {@link AffectedRouteStructure.Sections }
*
*/
public void setSections(AffectedRouteStructure.Sections value) {
this.sections = value;
}
/**
* Gets the value of the stopPoints property.
*
* @return
* possible object is
* {@link AffectedRouteStructure.StopPoints }
*
*/
public AffectedRouteStructure.StopPoints getStopPoints() {
return stopPoints;
}
/**
* Sets the value of the stopPoints property.
*
* @param value
* allowed object is
* {@link AffectedRouteStructure.StopPoints }
*
*/
public void setStopPoints(AffectedRouteStructure.StopPoints value) {
this.stopPoints = value;
}
/**
* Gets the value of the routeLinks property.
*
* @return
* possible object is
* {@link AffectedRouteStructure.RouteLinks }
*
*/
public AffectedRouteStructure.RouteLinks getRouteLinks() {
return routeLinks;
}
/**
* Sets the value of the routeLinks property.
*
* @param value
* allowed object is
* {@link AffectedRouteStructure.RouteLinks }
*
*/
public void setRouteLinks(AffectedRouteStructure.RouteLinks value) {
this.routeLinks = value;
}
/**
* 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 AffectedRouteStructure withRouteRef(RouteRefStructure value) {
setRouteRef(value);
return this;
}
public AffectedRouteStructure withDirection(DirectionStructure... values) {
if (values!= null) {
for (DirectionStructure value: values) {
getDirection().add(value);
}
}
return this;
}
public AffectedRouteStructure withDirection(Collection values) {
if (values!= null) {
getDirection().addAll(values);
}
return this;
}
public AffectedRouteStructure withSections(AffectedRouteStructure.Sections value) {
setSections(value);
return this;
}
public AffectedRouteStructure withStopPoints(AffectedRouteStructure.StopPoints value) {
setStopPoints(value);
return this;
}
public AffectedRouteStructure withRouteLinks(AffectedRouteStructure.RouteLinks value) {
setRouteLinks(value);
return this;
}
public AffectedRouteStructure 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);
}
/**
* 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 = {
"routeLinkRef"
})
public static class RouteLinks {
@XmlElement(name = "RouteLinkRef", required = true)
protected List routeLinkRef;
/**
* Gets the value of the routeLinkRef 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 routeLinkRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getRouteLinkRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link RouteLinkRefStructure }
*
*
*
* @return
* The value of the routeLinkRef property.
*/
public List getRouteLinkRef() {
if (routeLinkRef == null) {
routeLinkRef = new ArrayList<>();
}
return this.routeLinkRef;
}
public AffectedRouteStructure.RouteLinks withRouteLinkRef(RouteLinkRefStructure... values) {
if (values!= null) {
for (RouteLinkRefStructure value: values) {
getRouteLinkRef().add(value);
}
}
return this;
}
public AffectedRouteStructure.RouteLinks withRouteLinkRef(Collection values) {
if (values!= null) {
getRouteLinkRef().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);
}
}
/**
* 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 = {
"affectedSection"
})
public static class Sections {
@XmlElement(name = "AffectedSection", required = true)
protected List affectedSection;
/**
* 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;
}
public AffectedRouteStructure.Sections withAffectedSection(AffectedSectionStructure... values) {
if (values!= null) {
for (AffectedSectionStructure value: values) {
getAffectedSection().add(value);
}
}
return this;
}
public AffectedRouteStructure.Sections withAffectedSection(Collection values) {
if (values!= null) {
getAffectedSection().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);
}
}
/**
* 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 = {
"affectedOnly",
"affectedStopPointAndLinkProjectionToNextStopPoint"
})
public static class StopPoints {
@XmlElement(name = "AffectedOnly", defaultValue = "false")
protected Boolean affectedOnly;
@XmlElements({
@XmlElement(name = "AffectedStopPoint", required = true, type = AffectedStopPointStructure.class),
@XmlElement(name = "LinkProjectionToNextStopPoint", required = true, type = LinkProjectionStructure.class)
})
protected List