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

de.vdv.ojp20.OperatingDaysStructure 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.LocalDateTime;
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.LocalDateXmlAdapter;


/**
 * [TMv6] day of public transport operation of which the characteristics are defined in a specific SERVICE CALENDAR and which may last more than 24 hours. This is useful, when the trip can be made during several days. Often users search in "general" without setting a date and then refine with the actual date. By using OperatingDaysStructure the result can directly be reused without an additional OJPTripRequest.
 * 
 * 

Java class for OperatingDaysStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OperatingDaysStructure", propOrder = { "from", "to", "pattern" }) public class OperatingDaysStructure { /** * Start date of period. * */ @XmlElement(name = "From", required = true, type = String.class) @XmlJavaTypeAdapter(LocalDateXmlAdapter.class) @XmlSchemaType(name = "date") protected LocalDateTime from; /** * End date of period. * */ @XmlElement(name = "To", required = true, type = String.class) @XmlJavaTypeAdapter(LocalDateXmlAdapter.class) @XmlSchemaType(name = "date") protected LocalDateTime to; /** * Bit pattern for operating days between start date and end date. The length of the pattern is equal to the number of days from start date to end date. A bit value of "1" indicates that an event happens on the day that is represented by the bit position. * */ @XmlElement(name = "Pattern", required = true) protected String pattern; /** * Start date of period. * * @return * possible object is * {@link String } * */ public LocalDateTime getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link String } * * @see #getFrom() */ public void setFrom(LocalDateTime value) { this.from = value; } /** * End date of period. * * @return * possible object is * {@link String } * */ public LocalDateTime getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link String } * * @see #getTo() */ public void setTo(LocalDateTime value) { this.to = value; } /** * Bit pattern for operating days between start date and end date. The length of the pattern is equal to the number of days from start date to end date. A bit value of "1" indicates that an event happens on the day that is represented by the bit position. * * @return * possible object is * {@link String } * */ public String getPattern() { return pattern; } /** * Sets the value of the pattern property. * * @param value * allowed object is * {@link String } * * @see #getPattern() */ public void setPattern(String value) { this.pattern = value; } public OperatingDaysStructure withFrom(LocalDateTime value) { setFrom(value); return this; } public OperatingDaysStructure withTo(LocalDateTime value) { setTo(value); return this; } public OperatingDaysStructure withPattern(String value) { setPattern(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