org.rutebanken.netex.model.SpecialService_VersionStructure Maven / Gradle / Ivy
Show all versions of netex-java-model Show documentation
//
// 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.math.BigDecimal;
import java.math.BigInteger;
import java.time.Duration;
import java.time.OffsetDateTime;
import java.time.OffsetTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
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 SpecialService_VersionStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SpecialService_VersionStructure">
* <complexContent>
* <extension base="{http://www.netex.org.uk/netex}Journey_VersionStructure">
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}SpecialServiceGroup"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SpecialService_VersionStructure", propOrder = {
"departureTime",
"departureDayOffset",
"frequency",
"journeyDuration",
"client",
"dayTypes",
"journeyPatternRef",
"vehicleTypeRef",
"origin",
"destination",
"print",
"dynamic",
"bookingContact",
"bookingMethods",
"bookingAccess",
"bookWhen",
"buyWhen",
"latestBookingTime",
"minimumBookingPeriod",
"bookingUrl",
"bookingNote"
})
@XmlSeeAlso({
SpecialService.class,
DatedSpecialService_VersionStructure.class
})
public class SpecialService_VersionStructure
extends Journey_VersionStructure
{
@XmlElement(name = "DepartureTime", type = String.class)
@XmlJavaTypeAdapter(OffsetTimeISO8601XmlAdapter.class)
@XmlSchemaType(name = "time")
protected OffsetTime departureTime;
@XmlElement(name = "DepartureDayOffset")
protected BigInteger departureDayOffset;
@XmlElement(name = "Frequency")
protected FrequencyStructure frequency;
@XmlElement(name = "JourneyDuration", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration journeyDuration;
@XmlElement(name = "Client")
protected MultilingualString client;
protected DayTypeRefs_RelStructure dayTypes;
@XmlElementRef(name = "JourneyPatternRef", namespace = "http://www.netex.org.uk/netex", type = JAXBElement.class, required = false)
protected JAXBElement extends JourneyPatternRefStructure> journeyPatternRef;
@XmlElementRef(name = "VehicleTypeRef", namespace = "http://www.netex.org.uk/netex", type = JAXBElement.class, required = false)
protected JAXBElement extends VehicleTypeRefStructure> vehicleTypeRef;
@XmlElement(name = "Origin")
protected JourneyEndpointStructure origin;
@XmlElement(name = "Destination")
protected JourneyEndpointStructure destination;
@XmlElement(name = "Print", defaultValue = "true")
protected Boolean print;
@XmlElement(name = "Dynamic", defaultValue = "always")
@XmlSchemaType(name = "NMTOKEN")
protected DynamicAdvertisementEnumeration dynamic;
@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 departureTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetTime getDepartureTime() {
return departureTime;
}
/**
* Sets the value of the departureTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDepartureTime(OffsetTime value) {
this.departureTime = value;
}
/**
* Gets the value of the departureDayOffset property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getDepartureDayOffset() {
return departureDayOffset;
}
/**
* Sets the value of the departureDayOffset property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setDepartureDayOffset(BigInteger value) {
this.departureDayOffset = value;
}
/**
* Gets the value of the frequency property.
*
* @return
* possible object is
* {@link FrequencyStructure }
*
*/
public FrequencyStructure getFrequency() {
return frequency;
}
/**
* Sets the value of the frequency property.
*
* @param value
* allowed object is
* {@link FrequencyStructure }
*
*/
public void setFrequency(FrequencyStructure value) {
this.frequency = value;
}
/**
* Gets the value of the journeyDuration property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getJourneyDuration() {
return journeyDuration;
}
/**
* Sets the value of the journeyDuration property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setJourneyDuration(Duration value) {
this.journeyDuration = value;
}
/**
* Gets the value of the client property.
*
* @return
* possible object is
* {@link MultilingualString }
*
*/
public MultilingualString getClient() {
return client;
}
/**
* Sets the value of the client property.
*
* @param value
* allowed object is
* {@link MultilingualString }
*
*/
public void setClient(MultilingualString value) {
this.client = value;
}
/**
* Gets the value of the dayTypes property.
*
* @return
* possible object is
* {@link DayTypeRefs_RelStructure }
*
*/
public DayTypeRefs_RelStructure getDayTypes() {
return dayTypes;
}
/**
* Sets the value of the dayTypes property.
*
* @param value
* allowed object is
* {@link DayTypeRefs_RelStructure }
*
*/
public void setDayTypes(DayTypeRefs_RelStructure value) {
this.dayTypes = value;
}
/**
* Gets the value of the journeyPatternRef property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link ServiceJourneyPatternRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link JourneyPatternRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link ServicePatternRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link DeadRunJourneyPatternRefStructure }{@code >}
*
*/
public JAXBElement extends JourneyPatternRefStructure> getJourneyPatternRef() {
return journeyPatternRef;
}
/**
* Sets the value of the journeyPatternRef property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link ServiceJourneyPatternRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link JourneyPatternRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link ServicePatternRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link DeadRunJourneyPatternRefStructure }{@code >}
*
*/
public void setJourneyPatternRef(JAXBElement extends JourneyPatternRefStructure> value) {
this.journeyPatternRef = value;
}
/**
* Gets the value of the vehicleTypeRef property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link CompoundTrainRef }{@code >}
* {@link JAXBElement }{@code <}{@link TrainRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link VehicleTypeRefStructure }{@code >}
*
*/
public JAXBElement extends VehicleTypeRefStructure> getVehicleTypeRef() {
return vehicleTypeRef;
}
/**
* Sets the value of the vehicleTypeRef property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link CompoundTrainRef }{@code >}
* {@link JAXBElement }{@code <}{@link TrainRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link VehicleTypeRefStructure }{@code >}
*
*/
public void setVehicleTypeRef(JAXBElement extends VehicleTypeRefStructure> value) {
this.vehicleTypeRef = value;
}
/**
* Gets the value of the origin property.
*
* @return
* possible object is
* {@link JourneyEndpointStructure }
*
*/
public JourneyEndpointStructure getOrigin() {
return origin;
}
/**
* Sets the value of the origin property.
*
* @param value
* allowed object is
* {@link JourneyEndpointStructure }
*
*/
public void setOrigin(JourneyEndpointStructure value) {
this.origin = value;
}
/**
* Gets the value of the destination property.
*
* @return
* possible object is
* {@link JourneyEndpointStructure }
*
*/
public JourneyEndpointStructure getDestination() {
return destination;
}
/**
* Sets the value of the destination property.
*
* @param value
* allowed object is
* {@link JourneyEndpointStructure }
*
*/
public void setDestination(JourneyEndpointStructure value) {
this.destination = value;
}
/**
* Gets the value of the print property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPrint() {
return print;
}
/**
* Sets the value of the print property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setPrint(Boolean value) {
this.print = value;
}
/**
* Gets the value of the dynamic property.
*
* @return
* possible object is
* {@link DynamicAdvertisementEnumeration }
*
*/
public DynamicAdvertisementEnumeration getDynamic() {
return dynamic;
}
/**
* Sets the value of the dynamic property.
*
* @param value
* allowed object is
* {@link DynamicAdvertisementEnumeration }
*
*/
public void setDynamic(DynamicAdvertisementEnumeration value) {
this.dynamic = value;
}
/**
* 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 SpecialService_VersionStructure withDepartureTime(OffsetTime value) {
setDepartureTime(value);
return this;
}
public SpecialService_VersionStructure withDepartureDayOffset(BigInteger value) {
setDepartureDayOffset(value);
return this;
}
public SpecialService_VersionStructure withFrequency(FrequencyStructure value) {
setFrequency(value);
return this;
}
public SpecialService_VersionStructure withJourneyDuration(Duration value) {
setJourneyDuration(value);
return this;
}
public SpecialService_VersionStructure withClient(MultilingualString value) {
setClient(value);
return this;
}
public SpecialService_VersionStructure withDayTypes(DayTypeRefs_RelStructure value) {
setDayTypes(value);
return this;
}
public SpecialService_VersionStructure withJourneyPatternRef(JAXBElement extends JourneyPatternRefStructure> value) {
setJourneyPatternRef(value);
return this;
}
public SpecialService_VersionStructure withVehicleTypeRef(JAXBElement extends VehicleTypeRefStructure> value) {
setVehicleTypeRef(value);
return this;
}
public SpecialService_VersionStructure withOrigin(JourneyEndpointStructure value) {
setOrigin(value);
return this;
}
public SpecialService_VersionStructure withDestination(JourneyEndpointStructure value) {
setDestination(value);
return this;
}
public SpecialService_VersionStructure withPrint(Boolean value) {
setPrint(value);
return this;
}
public SpecialService_VersionStructure withDynamic(DynamicAdvertisementEnumeration value) {
setDynamic(value);
return this;
}
public SpecialService_VersionStructure withBookingContact(ContactStructure value) {
setBookingContact(value);
return this;
}
public SpecialService_VersionStructure withBookingMethods(BookingMethodEnumeration... values) {
if (values!= null) {
for (BookingMethodEnumeration value: values) {
getBookingMethods().add(value);
}
}
return this;
}
public SpecialService_VersionStructure withBookingMethods(Collection values) {
if (values!= null) {
getBookingMethods().addAll(values);
}
return this;
}
public SpecialService_VersionStructure withBookingAccess(BookingAccessEnumeration value) {
setBookingAccess(value);
return this;
}
public SpecialService_VersionStructure withBookWhen(PurchaseWhenEnumeration value) {
setBookWhen(value);
return this;
}
public SpecialService_VersionStructure withBuyWhen(PurchaseMomentEnumeration... values) {
if (values!= null) {
for (PurchaseMomentEnumeration value: values) {
getBuyWhen().add(value);
}
}
return this;
}
public SpecialService_VersionStructure withBuyWhen(Collection values) {
if (values!= null) {
getBuyWhen().addAll(values);
}
return this;
}
public SpecialService_VersionStructure withLatestBookingTime(OffsetTime value) {
setLatestBookingTime(value);
return this;
}
public SpecialService_VersionStructure withMinimumBookingPeriod(Duration value) {
setMinimumBookingPeriod(value);
return this;
}
public SpecialService_VersionStructure withBookingUrl(String value) {
setBookingUrl(value);
return this;
}
public SpecialService_VersionStructure withBookingNote(MultilingualString value) {
setBookingNote(value);
return this;
}
@Override
public SpecialService_VersionStructure withDescription(MultilingualString value) {
setDescription(value);
return this;
}
@Override
public SpecialService_VersionStructure withTransportMode(AllVehicleModesOfTransportEnumeration value) {
setTransportMode(value);
return this;
}
@Override
public SpecialService_VersionStructure withTransportSubmode(TransportSubmodeStructure value) {
setTransportSubmode(value);
return this;
}
@Override
public SpecialService_VersionStructure withExternalVehicleJourneyRef(ExternalObjectRefStructure value) {
setExternalVehicleJourneyRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withTypeOfProductCategoryRef(TypeOfProductCategoryRefStructure value) {
setTypeOfProductCategoryRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withTypeOfServiceRef(TypeOfServiceRefStructure value) {
setTypeOfServiceRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withLinkSequenceProjectionRef(LinkSequenceProjectionRefStructure value) {
setLinkSequenceProjectionRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withLinkSequenceProjection(LinkSequenceProjection value) {
setLinkSequenceProjection(value);
return this;
}
@Override
public SpecialService_VersionStructure withMonitored(Boolean value) {
setMonitored(value);
return this;
}
@Override
public SpecialService_VersionStructure withAccessibilityAssessment(AccessibilityAssessment value) {
setAccessibilityAssessment(value);
return this;
}
@Override
public SpecialService_VersionStructure withJourneyAccountings(JourneyAccountings_RelStructure value) {
setJourneyAccountings(value);
return this;
}
@Override
public SpecialService_VersionStructure withNoticeAssignments(NoticeAssignments_RelStructure value) {
setNoticeAssignments(value);
return this;
}
@Override
public SpecialService_VersionStructure withName(MultilingualString value) {
setName(value);
return this;
}
@Override
public SpecialService_VersionStructure withShortName(MultilingualString value) {
setShortName(value);
return this;
}
@Override
public SpecialService_VersionStructure withDistance(BigDecimal value) {
setDistance(value);
return this;
}
@Override
public SpecialService_VersionStructure withPrivateCode(PrivateCodeStructure value) {
setPrivateCode(value);
return this;
}
@Override
public SpecialService_VersionStructure withSectionsInSequence(SectionsInSequence_RelStructure value) {
setSectionsInSequence(value);
return this;
}
@Override
public SpecialService_VersionStructure withKeyList(KeyListStructure value) {
setKeyList(value);
return this;
}
@Override
public SpecialService_VersionStructure withExtensions(ExtensionsStructure value) {
setExtensions(value);
return this;
}
@Override
public SpecialService_VersionStructure withBrandingRef(BrandingRefStructure value) {
setBrandingRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withAlternativeTexts(AlternativeTexts_RelStructure value) {
setAlternativeTexts(value);
return this;
}
@Override
public SpecialService_VersionStructure withResponsibilitySetRef(String value) {
setResponsibilitySetRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withValidityConditions(ValidityConditions_RelStructure value) {
setValidityConditions(value);
return this;
}
@Override
public SpecialService_VersionStructure withValidBetween(ValidBetween... values) {
if (values!= null) {
for (ValidBetween value: values) {
getValidBetween().add(value);
}
}
return this;
}
@Override
public SpecialService_VersionStructure withValidBetween(Collection values) {
if (values!= null) {
getValidBetween().addAll(values);
}
return this;
}
@Override
public SpecialService_VersionStructure withDataSourceRef(String value) {
setDataSourceRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withCreated(OffsetDateTime value) {
setCreated(value);
return this;
}
@Override
public SpecialService_VersionStructure withChanged(OffsetDateTime value) {
setChanged(value);
return this;
}
@Override
public SpecialService_VersionStructure withModification(ModificationEnumeration value) {
setModification(value);
return this;
}
@Override
public SpecialService_VersionStructure withVersion(String value) {
setVersion(value);
return this;
}
@Override
public SpecialService_VersionStructure withStatus_BasicModificationDetailsGroup(StatusEnumeration value) {
setStatus_BasicModificationDetailsGroup(value);
return this;
}
@Override
public SpecialService_VersionStructure withDerivedFromVersionRef_BasicModificationDetailsGroup(String value) {
setDerivedFromVersionRef_BasicModificationDetailsGroup(value);
return this;
}
@Override
public SpecialService_VersionStructure withCompatibleWithVersionFrameVersionRef(String value) {
setCompatibleWithVersionFrameVersionRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withDerivedFromObjectRef(String value) {
setDerivedFromObjectRef(value);
return this;
}
@Override
public SpecialService_VersionStructure withNameOfClass(String value) {
setNameOfClass(value);
return this;
}
@Override
public SpecialService_VersionStructure withId(String value) {
setId(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);
}
}