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

de.vdv.ojp20.siri.AffectedSectionStructure 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.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;
import uk.org.ifopt.ifopt.StopPlaceRefStructure;


/**
 * 

Java class for AffectedSectionStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *           
 *           
 *             
 *               
 *                 
 *                   
 *                     
 *                       
 *                       
 *                       
 *                     
 *                     
 *                       
 *                       
 *                       
 *                     
 *                     
 *                       
 *                       
 *                       
 *                     
 *                   
 *                 
 *               
 *             
 *           
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AffectedSectionStructure", propOrder = { "sectionRef", "indirectSectionRef", "linkProjection", "offset", "extensions" }) public class AffectedSectionStructure { @XmlElement(name = "SectionRef") protected SectionRefStructure sectionRef; @XmlElement(name = "IndirectSectionRef") protected AffectedSectionStructure.IndirectSectionRef indirectSectionRef; @XmlElement(name = "LinkProjection") protected LinkProjectionStructure linkProjection; @XmlElement(name = "Offset") protected OffsetStructure offset; @XmlElement(name = "Extensions") protected ExtensionsStructure extensions; /** * Gets the value of the sectionRef property. * * @return * possible object is * {@link SectionRefStructure } * */ public SectionRefStructure getSectionRef() { return sectionRef; } /** * Sets the value of the sectionRef property. * * @param value * allowed object is * {@link SectionRefStructure } * */ public void setSectionRef(SectionRefStructure value) { this.sectionRef = value; } /** * Gets the value of the indirectSectionRef property. * * @return * possible object is * {@link AffectedSectionStructure.IndirectSectionRef } * */ public AffectedSectionStructure.IndirectSectionRef getIndirectSectionRef() { return indirectSectionRef; } /** * Sets the value of the indirectSectionRef property. * * @param value * allowed object is * {@link AffectedSectionStructure.IndirectSectionRef } * */ public void setIndirectSectionRef(AffectedSectionStructure.IndirectSectionRef value) { this.indirectSectionRef = value; } /** * Gets the value of the linkProjection property. * * @return * possible object is * {@link LinkProjectionStructure } * */ public LinkProjectionStructure getLinkProjection() { return linkProjection; } /** * Sets the value of the linkProjection property. * * @param value * allowed object is * {@link LinkProjectionStructure } * */ public void setLinkProjection(LinkProjectionStructure value) { this.linkProjection = value; } /** * Gets the value of the offset property. * * @return * possible object is * {@link OffsetStructure } * */ public OffsetStructure getOffset() { return offset; } /** * Sets the value of the offset property. * * @param value * allowed object is * {@link OffsetStructure } * */ public void setOffset(OffsetStructure value) { this.offset = 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 AffectedSectionStructure withSectionRef(SectionRefStructure value) { setSectionRef(value); return this; } public AffectedSectionStructure withIndirectSectionRef(AffectedSectionStructure.IndirectSectionRef value) { setIndirectSectionRef(value); return this; } public AffectedSectionStructure withLinkProjection(LinkProjectionStructure value) { setLinkProjection(value); return this; } public AffectedSectionStructure withOffset(OffsetStructure value) { setOffset(value); return this; } public AffectedSectionStructure 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 = { "firstStopPointRef", "firstStopPlaceRef", "firstQuayRef", "intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef", "lastStopPointRef", "lastStopPlaceRef", "lastQuayRef" }) public static class IndirectSectionRef { @XmlElement(name = "FirstStopPointRef") protected StopPointRefStructure firstStopPointRef; @XmlElement(name = "FirstStopPlaceRef") protected StopPlaceRefStructure firstStopPlaceRef; @XmlElement(name = "FirstQuayRef") protected QuayRefStructure firstQuayRef; @XmlElements({ @XmlElement(name = "IntermediateStopPointRef", type = StopPointRefStructure.class), @XmlElement(name = "IntermediateStopPlaceRef", type = StopPlaceRefStructure.class), @XmlElement(name = "IntermediateQuayRef", type = QuayRefStructure.class) }) protected List intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef; @XmlElement(name = "LastStopPointRef") protected StopPointRefStructure lastStopPointRef; @XmlElement(name = "LastStopPlaceRef") protected StopPlaceRefStructure lastStopPlaceRef; @XmlElement(name = "LastQuayRef") protected QuayRefStructure lastQuayRef; /** * Gets the value of the firstStopPointRef property. * * @return * possible object is * {@link StopPointRefStructure } * */ public StopPointRefStructure getFirstStopPointRef() { return firstStopPointRef; } /** * Sets the value of the firstStopPointRef property. * * @param value * allowed object is * {@link StopPointRefStructure } * */ public void setFirstStopPointRef(StopPointRefStructure value) { this.firstStopPointRef = value; } /** * Gets the value of the firstStopPlaceRef property. * * @return * possible object is * {@link StopPlaceRefStructure } * */ public StopPlaceRefStructure getFirstStopPlaceRef() { return firstStopPlaceRef; } /** * Sets the value of the firstStopPlaceRef property. * * @param value * allowed object is * {@link StopPlaceRefStructure } * */ public void setFirstStopPlaceRef(StopPlaceRefStructure value) { this.firstStopPlaceRef = value; } /** * Gets the value of the firstQuayRef property. * * @return * possible object is * {@link QuayRefStructure } * */ public QuayRefStructure getFirstQuayRef() { return firstQuayRef; } /** * Sets the value of the firstQuayRef property. * * @param value * allowed object is * {@link QuayRefStructure } * */ public void setFirstQuayRef(QuayRefStructure value) { this.firstQuayRef = value; } /** * Gets the value of the intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef 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 intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef property.

* *

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

*
         * getIntermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link QuayRefStructure } * {@link StopPointRefStructure } * {@link StopPlaceRefStructure } *

* * * @return * The value of the intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef property. */ public List getIntermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef() { if (intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef == null) { intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef = new ArrayList<>(); } return this.intermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef; } /** * Gets the value of the lastStopPointRef property. * * @return * possible object is * {@link StopPointRefStructure } * */ public StopPointRefStructure getLastStopPointRef() { return lastStopPointRef; } /** * Sets the value of the lastStopPointRef property. * * @param value * allowed object is * {@link StopPointRefStructure } * */ public void setLastStopPointRef(StopPointRefStructure value) { this.lastStopPointRef = value; } /** * Gets the value of the lastStopPlaceRef property. * * @return * possible object is * {@link StopPlaceRefStructure } * */ public StopPlaceRefStructure getLastStopPlaceRef() { return lastStopPlaceRef; } /** * Sets the value of the lastStopPlaceRef property. * * @param value * allowed object is * {@link StopPlaceRefStructure } * */ public void setLastStopPlaceRef(StopPlaceRefStructure value) { this.lastStopPlaceRef = value; } /** * Gets the value of the lastQuayRef property. * * @return * possible object is * {@link QuayRefStructure } * */ public QuayRefStructure getLastQuayRef() { return lastQuayRef; } /** * Sets the value of the lastQuayRef property. * * @param value * allowed object is * {@link QuayRefStructure } * */ public void setLastQuayRef(QuayRefStructure value) { this.lastQuayRef = value; } public AffectedSectionStructure.IndirectSectionRef withFirstStopPointRef(StopPointRefStructure value) { setFirstStopPointRef(value); return this; } public AffectedSectionStructure.IndirectSectionRef withFirstStopPlaceRef(StopPlaceRefStructure value) { setFirstStopPlaceRef(value); return this; } public AffectedSectionStructure.IndirectSectionRef withFirstQuayRef(QuayRefStructure value) { setFirstQuayRef(value); return this; } public AffectedSectionStructure.IndirectSectionRef withIntermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef(Object... values) { if (values!= null) { for (Object value: values) { getIntermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef().add(value); } } return this; } public AffectedSectionStructure.IndirectSectionRef withIntermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef(Collection values) { if (values!= null) { getIntermediateStopPointRefOrIntermediateStopPlaceRefOrIntermediateQuayRef().addAll(values); } return this; } public AffectedSectionStructure.IndirectSectionRef withLastStopPointRef(StopPointRefStructure value) { setLastStopPointRef(value); return this; } public AffectedSectionStructure.IndirectSectionRef withLastStopPlaceRef(StopPlaceRefStructure value) { setLastStopPlaceRef(value); return this; } public AffectedSectionStructure.IndirectSectionRef withLastQuayRef(QuayRefStructure value) { setLastQuayRef(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); } } }