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

de.vdv.ojp20.TripViaStructure 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.time.Duration;
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 jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import org.opentripplanner.ojp.util.DurationXmlAdapter;


/**
 * VIA restrictions for a TRIP.
 * 
 * 

Java class for TripViaStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TripViaStructure", propOrder = { "viaPoint", "dwellTime" }) public class TripViaStructure { /** * Reference to specify the via place. * */ @XmlElement(name = "ViaPoint", required = true) protected PlaceRefStructure viaPoint; /** * Duration the passenger wants to stay at the via place. Default is 0. * */ @XmlElement(name = "DwellTime", type = String.class) @XmlJavaTypeAdapter(DurationXmlAdapter.class) @XmlSchemaType(name = "duration") protected Duration dwellTime; /** * Reference to specify the via place. * * @return * possible object is * {@link PlaceRefStructure } * */ public PlaceRefStructure getViaPoint() { return viaPoint; } /** * Sets the value of the viaPoint property. * * @param value * allowed object is * {@link PlaceRefStructure } * * @see #getViaPoint() */ public void setViaPoint(PlaceRefStructure value) { this.viaPoint = value; } /** * Duration the passenger wants to stay at the via place. Default is 0. * * @return * possible object is * {@link String } * */ public Duration getDwellTime() { return dwellTime; } /** * Sets the value of the dwellTime property. * * @param value * allowed object is * {@link String } * * @see #getDwellTime() */ public void setDwellTime(Duration value) { this.dwellTime = value; } public TripViaStructure withViaPoint(PlaceRefStructure value) { setViaPoint(value); return this; } public TripViaStructure withDwellTime(Duration value) { setDwellTime(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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy