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

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


/**
 * Element that connects FareProducts to trips. A TripFareProduct is a FAREPRODUCT covering a part or the whole of a TRIP from boarding the first public transport vehicle to alighting from the last public transport vehicle (corresponds to a package of PREASSIGNED FARE PRODUCTs)
 * 
 * 

Java class for TripFareProductReferenceStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TripFareProductReferenceStructure", propOrder = { "fareProductRef", "fromTripIdRef", "fromLegIdRef", "toTripIdRef", "toLegIdRef" }) public class TripFareProductReferenceStructure { /** * Reference to a FareProduct. * */ @XmlElement(name = "FareProductRef", required = true) protected FareProductRefStructure fareProductRef; /** * Identifies the "valid from" trip. * */ @XmlElement(name = "FromTripIdRef", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String fromTripIdRef; /** * Identifies the "valid from" LEG. If missing, then valid from the first LEG. * */ @XmlElement(name = "FromLegIdRef") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String fromLegIdRef; /** * Identifies the "valid to" trip. * */ @XmlElement(name = "ToTripIdRef", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String toTripIdRef; /** * Identifies the "valid to" LEG. If missing, then valid to the last LEG. * */ @XmlElement(name = "ToLegIdRef") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String toLegIdRef; /** * Reference to a FareProduct. * * @return * possible object is * {@link FareProductRefStructure } * */ public FareProductRefStructure getFareProductRef() { return fareProductRef; } /** * Sets the value of the fareProductRef property. * * @param value * allowed object is * {@link FareProductRefStructure } * * @see #getFareProductRef() */ public void setFareProductRef(FareProductRefStructure value) { this.fareProductRef = value; } /** * Identifies the "valid from" trip. * * @return * possible object is * {@link String } * */ public String getFromTripIdRef() { return fromTripIdRef; } /** * Sets the value of the fromTripIdRef property. * * @param value * allowed object is * {@link String } * * @see #getFromTripIdRef() */ public void setFromTripIdRef(String value) { this.fromTripIdRef = value; } /** * Identifies the "valid from" LEG. If missing, then valid from the first LEG. * * @return * possible object is * {@link String } * */ public String getFromLegIdRef() { return fromLegIdRef; } /** * Sets the value of the fromLegIdRef property. * * @param value * allowed object is * {@link String } * * @see #getFromLegIdRef() */ public void setFromLegIdRef(String value) { this.fromLegIdRef = value; } /** * Identifies the "valid to" trip. * * @return * possible object is * {@link String } * */ public String getToTripIdRef() { return toTripIdRef; } /** * Sets the value of the toTripIdRef property. * * @param value * allowed object is * {@link String } * * @see #getToTripIdRef() */ public void setToTripIdRef(String value) { this.toTripIdRef = value; } /** * Identifies the "valid to" LEG. If missing, then valid to the last LEG. * * @return * possible object is * {@link String } * */ public String getToLegIdRef() { return toLegIdRef; } /** * Sets the value of the toLegIdRef property. * * @param value * allowed object is * {@link String } * * @see #getToLegIdRef() */ public void setToLegIdRef(String value) { this.toLegIdRef = value; } public TripFareProductReferenceStructure withFareProductRef(FareProductRefStructure value) { setFareProductRef(value); return this; } public TripFareProductReferenceStructure withFromTripIdRef(String value) { setFromTripIdRef(value); return this; } public TripFareProductReferenceStructure withFromLegIdRef(String value) { setFromLegIdRef(value); return this; } public TripFareProductReferenceStructure withToTripIdRef(String value) { setToTripIdRef(value); return this; } public TripFareProductReferenceStructure withToLegIdRef(String value) { setToLegIdRef(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