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

de.vdv.ojp20.LineResultStructure 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;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import de.vdv.ojp20.siri.DirectionRefStructure;
import de.vdv.ojp20.siri.LineRefStructure;
import de.vdv.ojp20.siri.NaturalLanguageStringStructure;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;


/**
 * 

Java class for LineResultStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *         
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "LineResultStructure", propOrder = { "errorCondition", "lineRef", "publishedLineName", "directionRef", "routeGeometry", "areaGeometry", "mode" }) public class LineResultStructure { /** * Problems related to this Line result. * */ @XmlElement(name = "ErrorCondition") protected List errorCondition; /** * Reference to the LINE. * */ @XmlElement(name = "LineRef", required = true) protected LineRefStructure lineRef; /** * Name or Number by which the LINE is known to the public. * */ @XmlElement(name = "PublishedLineName", namespace = "http://www.siri.org.uk/siri") protected NaturalLanguageStringStructure publishedLineName; /** * DIRECTION of LINE. * */ @XmlElement(name = "DirectionRef") protected DirectionRefStructure directionRef; /** * The LINE's route geometry. A line can have multiple ROUTEs, and each has its own geometry. The first should be the "main" geometry. * */ @XmlElement(name = "RouteGeometry") protected List routeGeometry; /** * The LINE's main area. Used for MOBILITY SERVICES that cover one or more areas. The interconnection between the areas is not calculated (e.g., exclusion zones can't be modelled). Don't mix RouteGeometry and AreaGeometry in a response. * */ @XmlElement(name = "AreaGeometry") protected List areaGeometry; /** * List of transport modes that are supported by this line. * */ @XmlElement(name = "Mode") protected List mode; /** * Problems related to this Line result. * * Gets the value of the errorCondition 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 errorCondition property.

* *

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

*
     * getErrorCondition().add(newItem);
     * 
* * *

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

* * * @return * The value of the errorCondition property. */ public List getErrorCondition() { if (errorCondition == null) { errorCondition = new ArrayList<>(); } return this.errorCondition; } /** * Reference to the LINE. * * @return * possible object is * {@link LineRefStructure } * */ public LineRefStructure getLineRef() { return lineRef; } /** * Sets the value of the lineRef property. * * @param value * allowed object is * {@link LineRefStructure } * * @see #getLineRef() */ public void setLineRef(LineRefStructure value) { this.lineRef = value; } /** * Name or Number by which the LINE is known to the public. * * @return * possible object is * {@link NaturalLanguageStringStructure } * */ public NaturalLanguageStringStructure getPublishedLineName() { return publishedLineName; } /** * Sets the value of the publishedLineName property. * * @param value * allowed object is * {@link NaturalLanguageStringStructure } * * @see #getPublishedLineName() */ public void setPublishedLineName(NaturalLanguageStringStructure value) { this.publishedLineName = value; } /** * DIRECTION of LINE. * * @return * possible object is * {@link DirectionRefStructure } * */ public DirectionRefStructure getDirectionRef() { return directionRef; } /** * Sets the value of the directionRef property. * * @param value * allowed object is * {@link DirectionRefStructure } * * @see #getDirectionRef() */ public void setDirectionRef(DirectionRefStructure value) { this.directionRef = value; } /** * The LINE's route geometry. A line can have multiple ROUTEs, and each has its own geometry. The first should be the "main" geometry. * * Gets the value of the routeGeometry 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 routeGeometry property.

* *

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

*
     * getRouteGeometry().add(newItem);
     * 
* * *

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

* * * @return * The value of the routeGeometry property. */ public List getRouteGeometry() { if (routeGeometry == null) { routeGeometry = new ArrayList<>(); } return this.routeGeometry; } /** * The LINE's main area. Used for MOBILITY SERVICES that cover one or more areas. The interconnection between the areas is not calculated (e.g., exclusion zones can't be modelled). Don't mix RouteGeometry and AreaGeometry in a response. * * Gets the value of the areaGeometry 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 areaGeometry property.

* *

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

*
     * getAreaGeometry().add(newItem);
     * 
* * *

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

* * * @return * The value of the areaGeometry property. */ public List getAreaGeometry() { if (areaGeometry == null) { areaGeometry = new ArrayList<>(); } return this.areaGeometry; } /** * List of transport modes that are supported by this line. * * Gets the value of the mode 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 mode property.

* *

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

*
     * getMode().add(newItem);
     * 
* * *

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

* * * @return * The value of the mode property. */ public List getMode() { if (mode == null) { mode = new ArrayList<>(); } return this.mode; } public LineResultStructure withErrorCondition(OJPErrorStructure... values) { if (values!= null) { for (OJPErrorStructure value: values) { getErrorCondition().add(value); } } return this; } public LineResultStructure withErrorCondition(Collection values) { if (values!= null) { getErrorCondition().addAll(values); } return this; } public LineResultStructure withLineRef(LineRefStructure value) { setLineRef(value); return this; } public LineResultStructure withPublishedLineName(NaturalLanguageStringStructure value) { setPublishedLineName(value); return this; } public LineResultStructure withDirectionRef(DirectionRefStructure value) { setDirectionRef(value); return this; } public LineResultStructure withRouteGeometry(LinearShapeStructure... values) { if (values!= null) { for (LinearShapeStructure value: values) { getRouteGeometry().add(value); } } return this; } public LineResultStructure withRouteGeometry(Collection values) { if (values!= null) { getRouteGeometry().addAll(values); } return this; } public LineResultStructure withAreaGeometry(AreaStructure... values) { if (values!= null) { for (AreaStructure value: values) { getAreaGeometry().add(value); } } return this; } public LineResultStructure withAreaGeometry(Collection values) { if (values!= null) { getAreaGeometry().addAll(values); } return this; } public LineResultStructure withMode(ModeStructure... values) { if (values!= null) { for (ModeStructure value: values) { getMode().add(value); } } return this; } public LineResultStructure withMode(Collection values) { if (values!= null) { getMode().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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy