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

de.vdv.ojp20.LegAttributeStructure 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.math.BigInteger;
import java.util.Collection;
import de.vdv.ojp20.siri.AllFacilitiesFeatureStructure;
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 org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;


/**
 * Attributes that are not valid on the whole service, but only on section of a TRIP made on a single MODE without interchange between boarding and alighting (facilities available on a specified (part of a) Leg of a VEHICLE JOURNEY)
 * 
 * 

Java class for LegAttributeStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "LegAttributeStructure", propOrder = { "fromStopSeqNumber", "toStopSeqNumber" }) public class LegAttributeStructure extends GeneralAttributeStructure { /** * The attribute is valid from the stop point with this sequence number within the leg. If missing it is valid from the beginning of the leg. * */ @XmlElement(name = "FromStopSeqNumber") @XmlSchemaType(name = "positiveInteger") protected BigInteger fromStopSeqNumber; /** * The attribute is valid to the stop point (inclusively) with this sequence number within the leg. If missing it is valid to the end of the leg. * */ @XmlElement(name = "ToStopSeqNumber") @XmlSchemaType(name = "positiveInteger") protected BigInteger toStopSeqNumber; /** * The attribute is valid from the stop point with this sequence number within the leg. If missing it is valid from the beginning of the leg. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getFromStopSeqNumber() { return fromStopSeqNumber; } /** * Sets the value of the fromStopSeqNumber property. * * @param value * allowed object is * {@link BigInteger } * * @see #getFromStopSeqNumber() */ public void setFromStopSeqNumber(BigInteger value) { this.fromStopSeqNumber = value; } /** * The attribute is valid to the stop point (inclusively) with this sequence number within the leg. If missing it is valid to the end of the leg. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getToStopSeqNumber() { return toStopSeqNumber; } /** * Sets the value of the toStopSeqNumber property. * * @param value * allowed object is * {@link BigInteger } * * @see #getToStopSeqNumber() */ public void setToStopSeqNumber(BigInteger value) { this.toStopSeqNumber = value; } public LegAttributeStructure withFromStopSeqNumber(BigInteger value) { setFromStopSeqNumber(value); return this; } public LegAttributeStructure withToStopSeqNumber(BigInteger value) { setToStopSeqNumber(value); return this; } @Override public LegAttributeStructure withUserText(InternationalTextStructure value) { setUserText(value); return this; } @Override public LegAttributeStructure withCode(String value) { setCode(value); return this; } @Override public LegAttributeStructure withKey(String value) { setKey(value); return this; } @Override public LegAttributeStructure withValue(String value) { setValue(value); return this; } @Override public LegAttributeStructure withFacility(AllFacilitiesFeatureStructure... values) { if (values!= null) { for (AllFacilitiesFeatureStructure value: values) { getFacility().add(value); } } return this; } @Override public LegAttributeStructure withFacility(Collection values) { if (values!= null) { getFacility().addAll(values); } return this; } @Override public LegAttributeStructure withMandatory(Boolean value) { setMandatory(value); return this; } @Override public LegAttributeStructure withImportance(Integer value) { setImportance(value); return this; } @Override public LegAttributeStructure withUrl(String value) { setUrl(value); return this; } @Override public LegAttributeStructure withMimeType(String value) { setMimeType(value); return this; } @Override public LegAttributeStructure withEmbeddable(Boolean value) { setEmbeddable(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