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

org.rutebanken.netex.model.BookingArrangementsStructure Maven / Gradle / Ivy

There is a newer version: 2.0.15
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2017.09.21 at 10:53:23 AM CEST 
//


package org.rutebanken.netex.model;

import java.time.Duration;
import java.time.OffsetTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.migesok.jaxb.adapter.javatime.DurationXmlAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
import org.rutebanken.util.OffsetTimeISO8601XmlAdapter;


/**
 * 

Java class for BookingArrangementsStructure complex type. * *

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

 * <complexType name="BookingArrangementsStructure">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <group ref="{http://www.netex.org.uk/netex}BookingArrangementsGroup"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BookingArrangementsStructure", propOrder = { "bookingContact", "bookingMethods", "bookingAccess", "bookWhen", "buyWhen", "latestBookingTime", "minimumBookingPeriod", "bookingUrl", "bookingNote" }) public class BookingArrangementsStructure { @XmlElement(name = "BookingContact") protected ContactStructure bookingContact; @XmlList @XmlElement(name = "BookingMethods") protected List bookingMethods; @XmlElement(name = "BookingAccess") @XmlSchemaType(name = "string") protected BookingAccessEnumeration bookingAccess; @XmlElement(name = "BookWhen") @XmlSchemaType(name = "normalizedString") protected PurchaseWhenEnumeration bookWhen; @XmlList @XmlElement(name = "BuyWhen") protected List buyWhen; @XmlElement(name = "LatestBookingTime", type = String.class) @XmlJavaTypeAdapter(OffsetTimeISO8601XmlAdapter.class) @XmlSchemaType(name = "time") protected OffsetTime latestBookingTime; @XmlElement(name = "MinimumBookingPeriod", type = String.class) @XmlJavaTypeAdapter(DurationXmlAdapter.class) @XmlSchemaType(name = "duration") protected Duration minimumBookingPeriod; @XmlElement(name = "BookingUrl") @XmlSchemaType(name = "anyURI") protected String bookingUrl; @XmlElement(name = "BookingNote") protected MultilingualString bookingNote; /** * Gets the value of the bookingContact property. * * @return * possible object is * {@link ContactStructure } * */ public ContactStructure getBookingContact() { return bookingContact; } /** * Sets the value of the bookingContact property. * * @param value * allowed object is * {@link ContactStructure } * */ public void setBookingContact(ContactStructure value) { this.bookingContact = value; } /** * Gets the value of the bookingMethods 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 bookingMethods property. * *

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

     *    getBookingMethods().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link BookingMethodEnumeration } * * */ public List getBookingMethods() { if (bookingMethods == null) { bookingMethods = new ArrayList(); } return this.bookingMethods; } /** * Gets the value of the bookingAccess property. * * @return * possible object is * {@link BookingAccessEnumeration } * */ public BookingAccessEnumeration getBookingAccess() { return bookingAccess; } /** * Sets the value of the bookingAccess property. * * @param value * allowed object is * {@link BookingAccessEnumeration } * */ public void setBookingAccess(BookingAccessEnumeration value) { this.bookingAccess = value; } /** * Gets the value of the bookWhen property. * * @return * possible object is * {@link PurchaseWhenEnumeration } * */ public PurchaseWhenEnumeration getBookWhen() { return bookWhen; } /** * Sets the value of the bookWhen property. * * @param value * allowed object is * {@link PurchaseWhenEnumeration } * */ public void setBookWhen(PurchaseWhenEnumeration value) { this.bookWhen = value; } /** * Gets the value of the buyWhen 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 buyWhen property. * *

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

     *    getBuyWhen().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PurchaseMomentEnumeration } * * */ public List getBuyWhen() { if (buyWhen == null) { buyWhen = new ArrayList(); } return this.buyWhen; } /** * Gets the value of the latestBookingTime property. * * @return * possible object is * {@link String } * */ public OffsetTime getLatestBookingTime() { return latestBookingTime; } /** * Sets the value of the latestBookingTime property. * * @param value * allowed object is * {@link String } * */ public void setLatestBookingTime(OffsetTime value) { this.latestBookingTime = value; } /** * Gets the value of the minimumBookingPeriod property. * * @return * possible object is * {@link String } * */ public Duration getMinimumBookingPeriod() { return minimumBookingPeriod; } /** * Sets the value of the minimumBookingPeriod property. * * @param value * allowed object is * {@link String } * */ public void setMinimumBookingPeriod(Duration value) { this.minimumBookingPeriod = value; } /** * Gets the value of the bookingUrl property. * * @return * possible object is * {@link String } * */ public String getBookingUrl() { return bookingUrl; } /** * Sets the value of the bookingUrl property. * * @param value * allowed object is * {@link String } * */ public void setBookingUrl(String value) { this.bookingUrl = value; } /** * Gets the value of the bookingNote property. * * @return * possible object is * {@link MultilingualString } * */ public MultilingualString getBookingNote() { return bookingNote; } /** * Sets the value of the bookingNote property. * * @param value * allowed object is * {@link MultilingualString } * */ public void setBookingNote(MultilingualString value) { this.bookingNote = value; } public BookingArrangementsStructure withBookingContact(ContactStructure value) { setBookingContact(value); return this; } public BookingArrangementsStructure withBookingMethods(BookingMethodEnumeration... values) { if (values!= null) { for (BookingMethodEnumeration value: values) { getBookingMethods().add(value); } } return this; } public BookingArrangementsStructure withBookingMethods(Collection values) { if (values!= null) { getBookingMethods().addAll(values); } return this; } public BookingArrangementsStructure withBookingAccess(BookingAccessEnumeration value) { setBookingAccess(value); return this; } public BookingArrangementsStructure withBookWhen(PurchaseWhenEnumeration value) { setBookWhen(value); return this; } public BookingArrangementsStructure withBuyWhen(PurchaseMomentEnumeration... values) { if (values!= null) { for (PurchaseMomentEnumeration value: values) { getBuyWhen().add(value); } } return this; } public BookingArrangementsStructure withBuyWhen(Collection values) { if (values!= null) { getBuyWhen().addAll(values); } return this; } public BookingArrangementsStructure withLatestBookingTime(OffsetTime value) { setLatestBookingTime(value); return this; } public BookingArrangementsStructure withMinimumBookingPeriod(Duration value) { setMinimumBookingPeriod(value); return this; } public BookingArrangementsStructure withBookingUrl(String value) { setBookingUrl(value); return this; } public BookingArrangementsStructure withBookingNote(MultilingualString value) { setBookingNote(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 - 2024 Weber Informatics LLC | Privacy Policy