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

de.vdv.ojp20.WeekdayTimePeriodStructure 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 java.time.LocalTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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;
import org.opentripplanner.ojp.util.LocalTimeISO8601XmlAdapter;


/**
 * [a specialisation of TIME BAND in TMv6] aggregation of TIME BAND and DAY OF WEEK (Time period on a weekday).
 * 
 * 

Java class for WeekdayTimePeriodStructure complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "WeekdayTimePeriodStructure", propOrder = { "weekday", "startTime", "duration" }) public class WeekdayTimePeriodStructure { /** * [a specialisation of DAY OF WEEK in TMv6] enumeration of individual the seven DAYs OF WEEK, along with public holidays * */ @XmlElement(name = "Weekday") @XmlSchemaType(name = "string") protected List weekday; /** * Start time of period. * */ @XmlElement(name = "StartTime", required = true, type = String.class) @XmlJavaTypeAdapter(LocalTimeISO8601XmlAdapter.class) @XmlSchemaType(name = "time") protected LocalTime startTime; /** * Time duration of period. * */ @XmlElement(name = "Duration", required = true, type = String.class) @XmlJavaTypeAdapter(DurationXmlAdapter.class) @XmlSchemaType(name = "duration") protected Duration duration; /** * [a specialisation of DAY OF WEEK in TMv6] enumeration of individual the seven DAYs OF WEEK, along with public holidays * * Gets the value of the weekday 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 weekday property.

* *

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

*
     * getWeekday().add(newItem);
     * 
* * *

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

* * * @return * The value of the weekday property. */ public List getWeekday() { if (weekday == null) { weekday = new ArrayList<>(); } return this.weekday; } /** * Start time of period. * * @return * possible object is * {@link String } * */ public LocalTime getStartTime() { return startTime; } /** * Sets the value of the startTime property. * * @param value * allowed object is * {@link String } * * @see #getStartTime() */ public void setStartTime(LocalTime value) { this.startTime = value; } /** * Time duration of period. * * @return * possible object is * {@link String } * */ public Duration getDuration() { return duration; } /** * Sets the value of the duration property. * * @param value * allowed object is * {@link String } * * @see #getDuration() */ public void setDuration(Duration value) { this.duration = value; } public WeekdayTimePeriodStructure withWeekday(WeekdayTypeEnumeration... values) { if (values!= null) { for (WeekdayTypeEnumeration value: values) { getWeekday().add(value); } } return this; } public WeekdayTimePeriodStructure withWeekday(Collection values) { if (values!= null) { getWeekday().addAll(values); } return this; } public WeekdayTimePeriodStructure withStartTime(LocalTime value) { setStartTime(value); return this; } public WeekdayTimePeriodStructure withDuration(Duration value) { setDuration(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